Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail SMTPAuthenticationError when I attempt to send email via django

I'm using django-registration-redux and the forget password reset dialogue is working on my machine but it fails on the server. I get an SMTPAuthenticationError even though the local server is sending mails just fine. What could I be doing wrong?

This is the error I get:

(534, '5.7.14 
<https://accounts.google.com/ContinueSignInsarp=1&scc=1&plt=AKgnsbtwe\n5.7.14 Dz3CKtLMnsuR5AJAalqHTpUCJLECZAJKqbimLhjZ3dzjnEOfMck4BnpTZdlLbVRnkocGVe\n5.7.14 ghl_iEoinCscpmC_RWk8CxJ8MP61MyYKtKljt8gnet-NUj53mRP5ohGJsok8V1z1SWXzGa\n5.7.14 MrBjYMYDHU9MbPFopv5jWzFDQS_4Jop03AACxQAcSD1jGG1uQqFXjULQ2RE-wMPrCcyDKW\n5.7.14 Vq08guBEY2LqcSBp9L3jauD-a9i4> 
Please log in via your web browser and\n5.7.14 then try again.\n5.7.14  Learn more at\n5.7.14  https://support.google.com/mail/answer/78754 ra1sm18942520pab.24 - gsmtp')
like image 413
Karan Modi Avatar asked Dec 10 '22 18:12

Karan Modi


1 Answers

If you have activated two-step verification, you need to turn that off. Also ,you can try another thing. Go to https://www.google.com/settings/security/lesssecureapps and https://myaccount.google.com/security?pli=1#connectedapps, allow access for the less secure app. Google might consider your server's sign-in process as less secure sign-in technology, which makes your account more vulnerable. So allowing access might help you.

like image 156
Dharmraj Avatar answered Dec 26 '22 16:12

Dharmraj