Forums

SMTPAuthenticationError at /accounts/signup/

please help me ... when new user register to my website...showing the following......

SMTPAuthenticationError at /accounts/signup/

(535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials c39sm9806346qta.40 - gsmtp')

Request Method: POST Request URL: http://dkm123.pythonanywhere.com/accounts/signup/ Django Version: 1.11.4 Exception Type: SMTPAuthenticationError Exception Value:

(535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials c39sm9806346qta.40 - gsmtp')

Exception Location: /usr/lib/python3.6/smtplib.py in auth, line 641 Python Executable: /usr/local/bin/uwsgi Python Version: 3.6.0 Python Path:

['/var/www', '.', '', '/var/www', '/home/dkm123/my-first-blog/myvenv/lib/python36.zip', '/home/dkm123/my-first-blog/myvenv/lib/python3.6', '/home/dkm123/my-first-blog/myvenv/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/dkm123/my-first-blog/myvenv/lib/python3.6/site-packages', '/home/dkm123/my-first-blog']

Server time: Tue, 22 Aug 2017 13:19:00 +0530

please help

please help anyone... server host please help related to my issue...

that sounds like you are trying to send an email using gmail but google is not letting you.

From the error message:

 Username and Password not accepted. Learn more at
 5.7.8 https://support.google.com/mail/?p=BadCredentials

So it looks like you're supplying invalid credentials to Google. Did you visit that URL listed? Did you follow any of the advice there?

thanks for reply...what i should do.....

yes i follow only i changed POP download enable...

please reply help needed....

It's an SMTP authentication error. I doubt that fiddling with POP download is going to fix anything.

There is really very little we can do to help you work out the correct authentication for your Google account. That's going to depend on you getting your Google account settings right and your username and password correct. We have no control over any of that.

Same problem here. I tried to log in on private navigation and my password worked. Try following this steps and it might help https://stackoverflow.com/questions/10147455/how-to-send-an-email-with-gmail-as-provider-using-python/27515833#27515833

I'd recommend using an app-specific password if you're having problems authenticating with Gmail from code. They seem to be much more reliable.