Answer the question
In order to leave comments, you need to log in
Why doesn't django send a password reset email?
Good day, I'm doing a password reset and a problem arose:
When the value of the ENAIL_BACKEND parameter is "django.core.mail.console.smtp.EmailBackend"
A link is displayed in the console, when you click on it, everything is perfectly reset
But when you change "django.core.mail. console.smtp.EmailBackend" on "django.core.mail.backends.smtp.EmailBackend" winerror 11001 climbs There
may be an error in setting mail in settings:
DEFAULT_FROM_EMAIL = "[email protected]"
SERVER_EMAIL = "[email protected]"
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = True
EMAIL_HOST = "mail.gmail.com"
EMAIL_HOST_USER = "[email protected] I created"
EMAIL_HOST_PASSWORD = "password_for_created_account"
EMAIL_PORT = 587
First time working with password reset, don't really understand how to fix the error
Answer the question
In order to leave comments, you need to log in
I climbed into Settings ... and, apart from the data settings block for mail, I didn’t find anything.
That is, I don't have django.core.mail.backends.smtp.EmailBackend =)
But the mail works with a bang.
It's just that letters are sent through
A recovery, through the regular form
, what can I do, I can just leave the settings, without backend, that is, as by default.
Junga version 2.2.
from django.core.mail import send_mail
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question