How to send email with google accounts using python smtplib?

I know how to send email using python smtplib with a regular google account. When I try to send an email with my account eg. yu@mycompany.com , this doesn't work because I can't install "less secure app access" here

https://www.google.com/settings/security/lesssecureapps

They say, "This option is not available for Google Apps accounts."

Any suggestions guys?

Thank!

+3


source to share


1 answer


You can use Google App Passwords feature. This means that you can generate a separate password for any application and only use it for that application.

This feature was created to prevent your master password.



See the answer here .

You can try this direct link if it works for you to manage passwords.

0


source







All Articles