• 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

google security

Q&A Forum › Category: ESP32 › google security
0 Vote Up Vote Down
marcjeanvandenbril asked 3 years ago

Hi there,
I’m having trouble with the “Send_Photos_Email_NEW.ino” sketch described in the ESP32-CAM book. Google has changed the security settings and it would no longer be possible to access an account with just username and password.
Is there a solution ?
Many thanks in advance for your advice.

Question Tags: send photos ESP32-CAM
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
You need to use an app password instead of the “regular” password.
 
 An App Password is a 16-digit passcode that gives a less secure app or device permission to access your Google Account. Learn more about sign-in with app passwords here.
An app password can only be used with accounts that have 2-step verification turned on.

  1. Open your Google Account.
  2. In the navigation panel, select Security.
  3. Under “Signing in to Google,” select 2-Step Verification > Get started.
  4. Follow the on-screen steps.

After enabling 2-step verification, you can create an app password.

  1. Open your Google Account.
  2. In the navigation panel, select Security.
  3. Under “Signing in to Google,” select App Passwords.

Create app password gmail

  1. In the Select app field, choose mail. For the device, select Other and give it a name, for example ESP32. Then, click on Generate. It will pop-up a window with a password that you’ll use with the ESP32 to send emails. Save that password (even though it says you won’t need to remember it) because you’ll need it in your code.

Generated App password gmail

 

Now, you should have an app password that you’ll use on the ESP32 code to send the emails.

Gmail app password created for ESP32 send emails
Let me know if this works.
Regards,
Sara

0 Vote Up Vote Down
marcjeanvandenbril answered 3 years ago

Hello Sarah,
As usual, you answered right away!
I managed to modify the security of my account by following your instructions. What a pain !!
I would never have made it without your advice.
A big thanks.

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

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.