R
R
Rassul Nassyrov2020-12-01 13:43:52
Django
Rassul Nassyrov, 2020-12-01 13:43:52

Why is the password reset email not sent by Django?

EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
EMAIL_FILE_PATH = str(BASE_DIR.joinpath('sent_emails'))
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'my_password'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER


password_reset_form.html:
<form method = "POST"> {% csrf_token %}
            <p>{{form.email}}</p>
            <p><input id = "POST_SUBMIT" type = "submit" value = "отправить"></p>
            </form>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tema_sun, 2020-12-01
@tema_sun

Because https://docs.djangoproject.com/en/3.1/topics/email...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question