Comments on: ESP8266 NodeMCU Send Emails using an SMTP Server: HTML, Text, and Attachments (Arduino) https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 12 Apr 2025 18:35:42 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-998021 Tue, 07 Jan 2025 11:54:53 +0000 https://randomnerdtutorials.com/?p=103424#comment-998021 In reply to Isidore.

Hi.
You can use this tutorial as a reference to learn how to get time from the NTP server with the ESP32: https://randomnerdtutorials.com/esp32-date-time-ntp-client-server-arduino/
Regards,
Sara

]]>
By: Isidore https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-997155 Sat, 04 Jan 2025 19:53:31 +0000 https://randomnerdtutorials.com/?p=103424#comment-997155 Hi folks !
I’m using your sketch to send simple email and it works very nice.
Now i’would like to put ntp time (hour only) in a variable to make some actions based on
period of the day. I’saw that you configure NTP server in the setup.
Is there a way to use that time ?

Thanks !

]]>
By: Czeslaw https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-990128 Mon, 09 Dec 2024 14:17:22 +0000 https://randomnerdtutorials.com/?p=103424#comment-990128 In reply to Allen Mulvey.

I also had trouble compiling for ESP8266 boards. Your method of changing the file name helped.

Thanks

]]>
By: savinder https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-910610 Sun, 28 Apr 2024 11:56:22 +0000 https://randomnerdtutorials.com/?p=103424#comment-910610 In reply to Tenzin.

did u get the solution?

]]>
By: Satvik N Kaushik https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-869738 Fri, 03 Nov 2023 16:00:37 +0000 https://randomnerdtutorials.com/?p=103424#comment-869738 Hello Sara,
this is a great tutorial, easy to follow.
just wanted to know how to change the text message depending on different conditions.
like for example:
if (condition 1) {
message 1;
}
else if (condition 2) {
message 2;
}

I am sadly not that experienced in arduino programming, so i do not know what to do.
please help me out.

]]>
By: GyTomi https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-855778 Fri, 18 Aug 2023 20:50:05 +0000 https://randomnerdtutorials.com/?p=103424#comment-855778 Hi Sara,

Just one more thing.

My ESP8266 code collects temperature and humidity values.
The values are sending to a database.
If the values are out of a tolerance zone, sending by e-mail.
There is incremental hour step (2 hours / sending) in the e-mail date-time stamp

Real time period
18/08/2023 21:51 to 22:00

E-mail Database

# °C RH% Date Time Date Time
1 27,6 64,5 18/08/2023 21:49 18/08/2023 21:51
2 27,51 64,67 18/08/2023 23:49 18/08/2023 21:52
3 27,4 64,93 19/08/2023 1:48 18/08/2023 21:53
4 27,3 65,45 19/08/2023 3:48 18/08/2023 21:54
5 27,24 65,46 19/08/2023 5:47 18/08/2023 21:55
6 27,21 65,46 19/08/2023 7:47 18/08/2023 21:56
7 27,17 65,67 19/08/2023 9:46 18/08/2023 21:57
8 27,14 65,72 19/08/2023 11:46 18/08/2023 21:58
9 27,14 65,78 19/08/2023 13:45 18/08/2023 21:59
10 27,12 65,92 19/08/2023 15:45 18/08/2023 22:00

etc.

Here is the code detail:

config.time.ntp_server = F(“pool.ntp.org,time.nist.gov”);
config.time.gmt_offset = 2;
config.time.day_light_offset = 0;

How can I solve this issue?

Regards Tamas

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-855152 Tue, 15 Aug 2023 22:30:59 +0000 https://randomnerdtutorials.com/?p=103424#comment-855152 In reply to GyTomi.

That’s great.
Thank you so much for your nice words.
Regards,
Sara

]]>
By: GyTomi https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-855107 Tue, 15 Aug 2023 17:57:18 +0000 https://randomnerdtutorials.com/?p=103424#comment-855107 In reply to Sara Santos.

Thank you Sara your quick response 🙂
I completly uninstalled the Arduino IDE and I switched to VS system.
All thing is works fine.
I can only repeat myself: this technical blog is awesome. ‘keep it up’
(I’m a Technical IT Engineer with batchelor degree)

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-855062 Tue, 15 Aug 2023 08:21:18 +0000 https://randomnerdtutorials.com/?p=103424#comment-855062 In reply to GyTomi.

Hi.
What version of the library are you using?
Regards,
Sara

]]>
By: GyTomi https://randomnerdtutorials.com/esp8266-nodemcu-send-email-smtp-server-arduino/#comment-854930 Mon, 14 Aug 2023 09:54:10 +0000 https://randomnerdtutorials.com/?p=103424#comment-854930 Hello Sara and Rui,

As I wrote in earlier forum comment (DIY Cloud Weather Station with ESP32/ESP8266 (MySQL Database and PHP)) this tutorial page is awesome.
Congratulation!

I have a little problem with this page project: ESP8266 NodeMCU Send Emails…

I’m using Lolin (Wemos) D1 R1 board (its a 8266 based board)
This projec “DIY Cloud Weather Station with ESP32/ESP8266 (MySQL Database and PHP)” working fine on the board.
But unfortunately the Email sending project is not works.

This is the errormessage after the compiling:

“In file included from C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\SD\src/SD.h:25,
from C:\Users\GT\Documents\Arduino\libraries\ESP_Mail_Client\src/ESP_Mail_FS.h:116,
from C:\Users\GT\Documents\Arduino\libraries\ESP_Mail_Client\src/extras/RFC2047.h:12,
from C:\Users\GT\Documents\Arduino\libraries\ESP_Mail_Client\src/ESP_Mail_Client.h:39,
from C:\Users\GT\Documents\Arduino\ESP_Email_Sending_v01\ESP_Email_Sending_v01.ino:18:
C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\SDFS\src/SDFS.h: In member function ‘virtual int sdfs::SDFSFileImpl::availableForWrite()’:
C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\SDFS\src/SDFS.h:279:31: error: ‘using element_type = class File32’ {aka ‘class File32’} has no member named ‘availableSpaceForWrite’; did you mean ‘availableForWrite’?
279 | return _opened ? _fd->availableSpaceForWrite() : 0;
| ^~~~~~~~~~~~~~~~~~~~~~
| availableForWrite
Multiple libraries were found for “SPI.h”
Used: C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\SPI
Multiple libraries were found for “SdFat.h”
Used: C:\Users\GT\Documents\Arduino\libraries\SdFat
Not used: C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\ESP8266SdFat
Multiple libraries were found for “ESP8266WiFi.h”
Used: C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\ESP8266WiFi
Multiple libraries were found for “ESP_Mail_Client.h”
Used: C:\Users\GT\Documents\Arduino\libraries\ESP_Mail_Client
Multiple libraries were found for “LittleFS.h”
Used: C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\LittleFS
Multiple libraries were found for “SD.h”
Used: C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\SD
Not used: C:\Program
Multiple libraries were found for “SDFS.h”
Used: C:\Users\GT\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.1\libraries\SDFS
exit status 1
Error compiling for board LOLIN(WeMos) D1 R1.

Do you have any idea to solve tihs problem?

Regards

Tamas

]]>