xreef / EMailSender

Arduino, esp32, Esp8266 EMailSender with Arduino IDE, simple library to send email via smtp with attachments.
https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/
MIT License
75 stars 28 forks source link

Could not connect to mail server, even if it's connecting. #25

Closed mmbaguette closed 2 years ago

mmbaguette commented 2 years ago
EMailSender emailSend(email_login, email_pass, email_login, "smtp-mail.outlook.com", 587);
EMailSender::EMailMessage message;
message.subject = "Someone's home";
message.message = "I am!";
EMailSender::Response resp = emailSend.send("someemail@gmail.com", message);
Serial.println("Sending status: ");
Serial.println(resp.code);
Serial.println(resp.desc);
Serial.println(resp.status);

Result:

Sending status: 
2
Could not connect to mail server
0

My program will not connect to the Outlook SMTP mail servers, at least that's what it says. However, I can see in Wireshark that it is communicating: image

It's just back and forth of the ESP sending line data and the server responding with the same 220 code. image

xreef commented 2 years ago

Hi @mmbaguette, the library does not support TLS, sorry. Bye Renzo