0

I'm not receiving the password reset email link when I click on the Reset password in my Blogging Web App built using Django Framework, although the info "An email has been sent with instructions to reset your password." is prompted as well. I'm guessing something with my setting USER_HOST_EMAIL and USER_HOST_PASSWORD in the environment variables. The settings.py in my Django setup looks like this:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')

Any ideas on what could possibly be the problem?

2
  • 1
    Can you share some of the django logs? Commented Mar 22, 2021 at 19:13
  • Could you be a bit more specific in this regard please? You mean logs specific to the action that I'm trying to perform? Views, settings, template changes etc? Commented Mar 22, 2021 at 19:18

2 Answers 2

0

I use EMAIL_PORT = 465, try changing it, If not, show how you are leaving your URl so I can try to help you better

Sign up to request clarification or add additional context in comments.

1 Comment

Hey Alex, I don't think the problem was with the URI or the port number since I happened to change the HOST email address to the one with no two-factor authentication. That apparently worked without any other changes needed! Thanks!
0

I don't think the problem was with the URI or the port number since I happened to change the HOST email address to the one with no two-factor authentication. That apparently worked without any other changes needed!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.