gpepe / esp8266-sendemail

Send email with esp8266 arduino.
20 stars 14 forks source link

esp32 fix (localIP->WiFi.localIP) #4

Open plewka opened 5 years ago

plewka commented 5 years ago

After line 42 in *.c in the EHLO call there is client.localip() which is empty/0 at esp32. I used WiFi.localIP instead. Additionaly I had to add a "/r" to the end of the buffer to get a response from server. Btw: Great work - thanks!

//***** if (!buffer.startsWith(F("220"))) { return false; } buffer = F("HELO "); // buffer += client->localIP(); buffer += WiFi.localIP(); buffer += "\r"; // ******