Replies: 1 comment 1 reply
-
The function There is no error if you provide the valid timestamp and GMT offset to that function. You should check the RFC 2822 date with Library cannot detect your device (UNO R4 WiFi) system time as in ESP and Raspberry Pi Pico devices, then the internal timestamp and GMT offset will always be 0 and
|
Beta Was this translation helpful? Give feedback.
-
I've run the Set_Time.ino example from the IDE and find email date field in the header is not correct. This field is picked up by Outlook 365 and displays an 1899 year date as my gmt offset is negative. This error appears corrected by not using the smtp.setSystemTime() function, so far as the email clients are concerned, but this of course generates an ESP SMTP error. What might I be able to try to sort this out? Thks
These are ending lines of the gmail header, both with and without setting the smtp time.
Setting ESP SMTP time
Message-ID: [email protected]
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
From: ESP Mail <@gmail.com>
To: Someone <@gmail.com>
Subject: Test sending plain text Email (#esp_mail_current_time)
Date: Sun, 00 Jan 1900 00:00:00 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8";
Content-transfer-encoding: 7bit
This is simple plain text message
Sent September 05, 2024 07:11:14
Not Setting ESP SMTP time
Message-ID: [email protected]
Date: Thu, 05 Sep 2024 03:58:20 -0700 (PDT)
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
From: ESP Mail <@gmail.com>
To: Someone <@gmail.com>
Subject: Test sending plain text Email (#esp_mail_current_time)
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8";
Content-transfer-encoding: 7bit
This is simple plain text message
Sent January 01, 1970 00:03:55
Beta Was this translation helpful? Give feedback.
All reactions