SMTP example code issue

leenowell
Posts: 92
Joined: Tue Jan 15, 2019 1:50 pm

SMTP example code issue

Postby leenowell » Sun Jan 31, 2021 5:24 pm

Hi All,

I am using the SMTP sample code within my project and the surrounding code uses the code to send a status update email every 2 minutes. Most of the time it all works fine but every now and again I get the following error in the log when it is trying to send the "FROM" field.

Code: Select all

E (8307017) smtp_example: mbedtls_ssl_write failed with error -0x4e
E (8307027) smtp_example: Last error was: -0x4e - UNKNOWN ERROR CODE (004E)
When it happens, it tends to happen each time for the next few sends and goes back to working fine again.

@ESP_Vikram looks like when I was helping to debug the initial version of this code we had a similar issue (https://www.esp32.com/viewtopic.php?f=1 ... ell#p55275) but not sure what you did to fix it.

Anyone have any ideas?

Thanks in advance

Lee.

Who is online

Users browsing this forum: Baidu [Spider], nopnop2002, Orange_Murker and 68 guests