Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

email

smtp

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

like image 758
Ran A Avatar asked Oct 27 '25 09:10

Ran A


1 Answers

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

like image 53
Khalil Avatar answered Oct 29 '25 07:10

Khalil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!