Hi,
I have tried your example for sending E-Mail using ESP32. It worked a month back a few times and I saved it for real time use. But today when I tried again it failed. I then turned On the option to allow less secure App in GMail .
Still no use … now it gets past the Login stage but fails when sending the header.
SO obviously this is not going to work for long with Google getting more security conscious. Is there a way to conform to the security levels that GMail expects and send mail ?
I guess in the long run that will be reliable and also safe in a way instead of exposing the mail account for less secure apps.
Thanks for any help !
Hi.
I tested the project again and it is working fine.
Make sure that at the moment, you have less secure apps enabled. I think that if you don’t use the sender email for some time, Gmail will put it back to “Not allow less secure apps”.
You should have this option as shown below:
You can see that option if you go to this link:
https://myaccount.google.com/lesssecureapps?pli=1
At the moment, I don’t know any option that doesn’t need to enable the less secure apps 🙁
Regards,
Sara
Hi Sara,
So prompt as always !
Thanks for your response. Possibly the simple code to send SMTP mails is OK to demo the concept but nowadays to make e-mail services to accept less secure apps is a potential safety risk.
So I have found a better way to handle this and it is by using the IFTTT services. It is much secure and in fact much simpler if I use the IFTTTWebhook library.
Cheers !!
Yes, that’s also a great option to do a similar project.
However, many of our readers don’t like IFTTT, so we provide the option with the SMTP Server.
Either way, I’m glad you found another option that better suits your project.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara