Page 1 of 1

SMTP

Posted: Thu Jun 01, 2023 12:12 pm
by Vaibhav67
I am building a device which will send the Email in case of any fault, I am using smtp example present in ESP IDF and it works fine for Gmail server but whenever I tried with any other smtp server Emails are not getting delivered. I can see them into my sent folder but over there I can see that the emails triggered by the esp32 are not getting delivered because server identify that emails as spam.
I don't have the server certificate so i have disabled the server certificate validation.
smtp_client_example_main.c
(17.3 KiB) Downloaded 210 times
Here I have attached my code this works for gmail server but not for other smtp servers

Re: SMTP

Posted: Thu Jun 01, 2023 1:47 pm
by MicroController
the emails [...] are not getting delivered because server identify that emails as spam.
Probably because your emails don't look like non-spam emails, e.g.

"From: \"Anonymous\"ESP32 SMTP Client"

You could try and provide the real sender email address here, then you may have a chance to white-list that sender at the receiver.