I have been struggling to solve this for the last 3 hours but couldn't find it. My problem is that Django is not sending email and even if I enter the wrong username and password it shows successful .It never sends mail. Please tell me what I am doing wrong.Here is my 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 = '******************'
EMAIL_HOST_PASSWORD = '********'
My urls.py file:
path('reset_password_complete',auth_views.PasswordResetCompleteView.as_view(),name='password_reset_complete'), path('reset/<uidb64>/<token>/',auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'), path('reset_password_sent/',auth_views.PasswordResetDoneView.as_view(),name='password_reset_done'), path('reset_password/',auth_views.PasswordResetView.as_view(),name="reset_password"),
I am using the default view of Django but even if my password is wrong or username is wrong it shows me email has been sent but it has not.Please help me.