[Django]-SMTPAuthenticationError at /password-reset/

4👍

Would you mind double checking if your environment variables are set correctly? Also, did you enable this feature on your Google account: https://www.google.com/settings/security/lesssecureapps?

Take a look at this answer, as it might help you as well: SMTPAuthenticationError when sending mail using gmail and python

4👍

In my case it was working on my local machine but not on heroku server. I went on this link https://accounts.google.com/DisplayUnlockCaptcha
and clicked on Continue. After that I had to re-login into my gmail account. It started working. Hope it might help someone!

1👍

Feb, 2022 Update:

You need to do 2 things to get over very strong google’s security.

  1. Allow less secure apps: ON ↓↓↓

    https://myaccount.google.com/lesssecureapps

  2. Allow access to your Google account: ON (Tap "Continue") ↓↓↓

    https://accounts.google.com/DisplayUnlockCaptcha

Leave a comment