What's solution for sending emails from python while gmail " the less secure apps " is not enabled anymore
Asked Answered
G

2

4

I recently was using smtp library for sending emails from gmail account but recently it stopped working after research I found out the google can not let you enable the less secure app anymore . So is there any workaround this ?

enter image description here

Gerlach answered 10/6, 2022 at 14:53 Comment(0)
A
3

If you want to continue using Gmail SMTP, you can set it up by setting an app password. An app password works like an alternate password for your account. It can only be used by the applications you share it with, so it’s more secure than sharing your primary password.

Here's how you can set it up: https://support.google.com/accounts/answer/185833?hl=en

Amethyst answered 10/6, 2022 at 15:4 Comment(0)
I
0

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

We need to use apppasswords using following link.
https://myaccount.google.com/u/0/apppasswords

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

Use 16 digit code provided by google instead of password and which will work for authentication.

enter image description here

Ideally answered 28/12, 2023 at 4:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.