security - How to turn on less secure app access on google_ - Stack Overflow
security - How to turn on less secure app access on google_ - Stack Overflow
- Stack Overflow
19
Share Improve this question Follow asked Aug 15, 2022 at 18:36
Sandip Gadade
319 2 3 7
TLDR: login with your phone and enable 2FA, then generate an "app password". – Douglas Silva Dec 26, 2023 at 20:06
As of May 30 2022 google has removed the less secure apps option. There is no way to turn this on as it no longer exists.
If you are trying to use Google smtp server you have two options
33
1. Enable 2fa on your google account and create an apps password and use that in place of your true password in your code.
2. switch to using Xoauth2 most of the libraries support it. it will depend upon the language you are using though.
Quick fix for SMTP username and password not accepted error
Share Improve this answer Follow edited Sep 20, 2022 at 13:46 answered Aug 15, 2022 at 18:45
Linda Lawton - DaImTo
113k 34 200 478
1 This is an excellent guide to set up 2fa: towardsdatascience.com/… – Jens Wagemaker Dec 17, 2022 at 16:17
2 1st option worked for me! – Athif Saheer Jul 4, 2023 at 17:41
Very helpful - link was super useful too – e-driver1 Jan 1 at 13:47
Use 16 digit code provided by google instead of password and that should be it.
Share Improve this answer Follow edited Jan 12, 2023 at 13:10 answered Jan 12, 2023 at 12:49
Vaibhav Jain
2,149 27 38
The App Passwords section can also be found by navigating to Security, then 2FA in the block named "How you login", then scroll to the bottom of the page.
– Douglas Silva Dec 26, 2023 at 20:52
Note that the spaces in the password should not be there. Sometimes a copy/paste leaves them in there. I'm perplexed at why google would do
this since password "readability" is a thing that hasn't been a thing in years. It should be copy-paste at a minimum....
1
TL;DR: NO SPACES
Share Improve this answer Follow answered Sep 28, 2023 at 19:16
jshep321
jshep3 613 7 8
1 Are you sure? I'm using it with the spaces, and it works. – Douglas Silva Dec 26, 2023 at 20:43
@DouglasSilva same here. I left the spaces and it worked – Dustin Spengler Apr 7 at 23:06