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 Fri, 07 Mar 2025 19:28:40 +0000 hourly 1 https://wordpress.org/?v=6.8.2 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?

]]>
By: Czeslaw https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-989532 Sat, 07 Dec 2024 18:36:16 +0000 https://randomnerdtutorials.com/?p=93585#comment-989532 In reply to Sara Santos.

Thanks Sara for this tutorial on installing ‘litleFS’. It works.

]]>
By: Czeslaw https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-989515 Sat, 07 Dec 2024 16:39:52 +0000 https://randomnerdtutorials.com/?p=93585#comment-989515 In reply to Martin Michael Kunkies.

Thanks Martina, this link is very helpful in dealing with the app password in Google.

]]>
By: Charan Singh https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-934553 Sat, 06 Jul 2024 04:49:18 +0000 https://randomnerdtutorials.com/?p=93585#comment-934553 mail can be sent using wifi only but can not sent with ethernet ,even though ping is ok with ethernet , i tried with esp32 and w5500 ethernet module , mail can not
be sent , smtp connecting fail , anyone can guide how to send email using ethernet
Thanks

]]>
By: Emmanuel https://randomnerdtutorials.com/esp32-send-email-smtp-server-arduino-ide/#comment-919986 Thu, 30 May 2024 20:16:46 +0000 https://randomnerdtutorials.com/?p=93585#comment-919986 Hello, another great tutorial. Thank you so much.
I was wondering how can I change the code above to do the following: I have 2 push buttons (or more), when I press the one of them an email containing a custom message should be sent like “Button 1 pressed” etc. and the same with the other buttons.
Also is it possible if the email fail to transmited, the ESP32 to try again and again until it succeded ?
Than you very much.

]]>