Comments on: ESP32 Send Emails using an SMTP Server: HTML, Text, and Attachments (Arduino IDE) https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 18 Feb 2026 13:12:58 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Ryszarrd https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-1162728 Wed, 18 Feb 2026 13:12:58 +0000 https://randomnerdtutorials.com/?p=93585#comment-1162728 In reply to Sara Santos.

Mrs Sara,
I have installed this library from Github zip file and it can be seen in Arduino IDE as installed library.
Still i have problem with compiling the sketch. The process starts, reaches about 10-15 % (progress bar) and lasts hours without any info in Output window. Any suggestions ?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-1161686 Sat, 14 Feb 2026 10:36:46 +0000 https://randomnerdtutorials.com/?p=93585#comment-1161686 In reply to Ryszard.

Hi.
It seems the author of the library has a new version of the library.
However, it should still work if you install it via .ZIP folder from Github: https://github.com/mobizt/ESP-Mail-Client

We’ll try to update our projects that use email soon.

Regards,
Sara

]]>
By: Ryszard https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-1161578 Fri, 13 Feb 2026 16:46:30 +0000 https://randomnerdtutorials.com/?p=93585#comment-1161578 Hi,

Following instruction
Go to Sketch > Include Library > Manage Libraries and search for ESP Mail Client. Install the ESP Mail Client library by Mobizt
I can not see required library.
What can be the reason ?

]]>
By: Beat https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-1092648 Wed, 03 Sep 2025 11:55:40 +0000 https://randomnerdtutorials.com/?p=93585#comment-1092648 HI
you can add a counter and a global boolean for WIFI status, if the connection fails after 60 tries, you can add in you main loop a trigger after 5 minutes if hasWIFI==false, you can use same while as you have in the setup or, you put the WiFi connection in a funciton and call it.

bool hasWIFI=false;
void setup(){
.
.

int iTryConnect;
while (WiFi.status() != WL_CONNECTED || iTryConnect<60 ){
Serial.print(“.”);
delay(300);
iTryConnect++;
}
hasWIFI= (WiFi.status() != WL_CONNECTED)?true:false;

]]>
By: roghib https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-1014367 Fri, 07 Mar 2025 19:28:40 +0000 https://randomnerdtutorials.com/?p=93585#comment-1014367 Hello Sara,
i was try the DHT and email tutorial and SSD1306 OLED. thats really awesome for me. im sorry i have to ask you how to handle the looping when search wifi on the set up()
” while (WiFi.status() != WL_CONNECTED){
Serial.print(“.”);
delay(300);
}”
the problem is, when the wifi is really disconnect in the first time or after, the ESP32 cant read the DHT function and or the OLED is off (black screen) cz the program need wifi connection to send the email. i was try any ways like make some time out. if the wifi is disconnect the esp32 but still got read the DHT function display it on OLED and maybe just send the email when the wifi is connected

thanks

]]>
By: Steve Knell https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-1000447 Thu, 16 Jan 2025 16:56:20 +0000 https://randomnerdtutorials.com/?p=93585#comment-1000447 Hi – fantastic tutorial; it worked first time for me (as a complete newbie to the ESP32 and coding in general, I’ve never been so surprised/happy to get such a simple email!!).

I’d like to incorporate this code into a project I’ve built that monitors the level of salt in a water softener; every 30 minutes, the level is checked, and if it’s too low, a buzzer sounds for ten seconds. I really want to add the ability to send a “Salt low” message via email, and replace the buzzer, but I am struggling to work out where to put my code module so that it runs first and then decides if a mail needs to be sent. I did try to glue both your code and mine together, but I get so many compilation errors I don’t know what to fix!

Do you have any code examples that show a mail being sent conditionally?

Any help gratefully received…

Cheers, Steve

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-990222 Mon, 09 Dec 2024 21:58:50 +0000 https://randomnerdtutorials.com/?p=93585#comment-990222 In reply to Czeslaw.

Hi.
Take a look at this tutorial: https://randomnerdtutorials.com/esp32-email-alert-temperature-threshold/
I think it might be a good reference. It uses a web server together with the functionality of sending emails.

Regards,
Sara

]]>
By: Czeslaw https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-990153 Mon, 09 Dec 2024 16:30:03 +0000 https://randomnerdtutorials.com/?p=93585#comment-990153 I was thinking about how to add this application (version without file transfer) to the ESP board which already has a server with many functions implemented so that I could add another function to it, the function of sending email notifications. It would be more elegant in my opinion to use one board instead of using two and sending messages between them. I tried to do this but without success

Best regards

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-989845 Sun, 08 Dec 2024 19:36:50 +0000 https://randomnerdtutorials.com/?p=93585#comment-989845 In reply to Czeslaw.

Yes.
Can you be a little more specific about what you want to do?
Maybe we can have a tutorial about it.

Regards,
Sara

]]>
By: Czeslaw https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-989535 Sat, 07 Dec 2024 18:49:30 +0000 https://randomnerdtutorials.com/?p=93585#comment-989535 Thanks Rui and Sara for this tutorial. It works. Now I wonder how to weave this application into an ESP32 server…so that the email can be triggered by events in the server program. Is this possible?

]]>