Skip to content

django not sending emails with password reset #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AzharUddinSheikh opened this issue Feb 20, 2021 · 2 comments
Closed

django not sending emails with password reset #153

AzharUddinSheikh opened this issue Feb 20, 2021 · 2 comments

Comments

@AzharUddinSheikh
Copy link

But whenever I navigate to the http://127.0.0.1:8000 /password-reset/ page and fill in email and click enter the page immediately redirects to
http://127.0.0.1:8000/password-reset/done/ and no email is sent.

no such effort i see in loading this password reset done page , no email i get
(turn on >> 2nd step verification
turn on >> low secure app access)

@BakrFrag
Copy link

BakrFrag commented Mar 7, 2021

first check the following settings in settings.py file
`
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_USER')

EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PWD')

DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
`
and if you use gmail account don't forget to allow 3rd party application to access
you can check this by going to your gmail account settings then security and allow less secure apps to access account

@AzharUddinSheikh
Copy link
Author

It's solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants