• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Sending Email from ESP32

Q&A Forum › Category: ESP32 › Sending Email from ESP32
-1 Vote Up Vote Down
raghunathanr asked 5 years ago

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 !

Question Tags: email
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

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

0 Vote Up Vote Down
raghunathanr answered 5 years ago

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 !!

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.