Hi
My password reset Mail using Django doesn’t send Emails it was working. but recently I discovered that’s stopped sending reset emails.
I check the Gmail configuration Less secure app access
and it is ON.
https://myaccount.google.com/lesssecureapps
and my urls.py are:
path('reset_password/', auth_views.PasswordResetView.as_view(template_name="user/password_reset.html"),
name="reset_password"),
path('reset_password_sent/', auth_views.PasswordResetDoneView.as_view(template_name="user/password_reset_sent.html"),
name="password_reset_done"),
path('reset/<uidb64>/<token>/',auth_views.PasswordResetConfirmView.as_view(template_name="user/password_reset_form.html"),
name="password_reset_confirm"),
path('reset_password_complete/',auth_views.PasswordResetCompleteView.as_view(template_name="user/password_reset_done.html"),
name="password_reset_complete"),
and the settings.py is
EMAIL_HOST = ‘smtp.gmail.com’
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = ‘wikiFFFFF@gmail.com’
EMAIL_HOST_PASSWORD = “@@@@@@@@@@”
EMAIL_BACKEND = ‘django.core.mail.backends.filebased.EmailBackend’
EMAIL_FILE_PATH =os.path.join(BASE_DIR,“media/sent_mails/”)
DEFAULT_FROM_EMAIL=“WikiPED wikiFFFFF@gmail.com”
the Email and PASSWORD are correct .
and I try to reset a password it told me that a mail has been sent.
but nothing appears in the recovery mail and I check the sent mail of wikiFFFFF@gmail.com but nothing!
and also the mails were saved in the media/sent_mails/
but this time not working!
what I can do to solve this issue?