Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn on less secure app access on google?

There is no option for turn on less secure app access

Less secure app access

learn more

Is there any another way to turn on less secure app access???

like image 374
Sandip Gadade Avatar asked Sep 06 '25 12:09

Sandip Gadade


2 Answers

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

  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

like image 52
DaImTo Avatar answered Sep 09 '25 06:09

DaImTo


Note: 2-factor authentication needs to be enabled if not enabled already.

Less secure apps (https://myaccount.google.com/u/0/lesssecureapps) options is disabled.

Instead use apppasswords using following link.
https://myaccount.google.com/u/0/apppasswords

Use 16 digit code provided by google instead of password and that should be it.

enter image description here

like image 45
Vaibhav Jain Avatar answered Sep 09 '25 07:09

Vaibhav Jain