SMTP

Vaibhav67
Posts: 1
Joined: Thu Jun 01, 2023 11:43 am

SMTP

Postby Vaibhav67 » Thu Jun 01, 2023 12:12 pm

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 209 times
Here I have attached my code this works for gmail server but not for other smtp servers

MicroController
Posts: 1709
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: SMTP

Postby MicroController » Thu Jun 01, 2023 1:47 pm

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.

Who is online

Users browsing this forum: No registered users and 69 guests