Python Forum

Full Version: Flask email hookup for password reset
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have all of the Flask code necessary to verify a users password change request, using gmail. However, when I attempt a test of the code, as soon as I try to send a verification email I get an error
Error:
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials z72sm15197070qka.115 - gsmtp')
I have verified that My password and email are correct.

I read a bit about two step password with google, but when asked how I wish to use it, the choices are get a text, and get a phone call. This is a website, don't want either, just send the mail!

Anyone run into this, and if so how to fix it.