'ConnectionRefusedError at /password-reset/ [WinError 10061] No connection could be made because the target machine actively refused it
When user enter email for password reset then error arise connection failure which is related to server failure error .
Solution 1:[1]
I was able to solve the problem by setting an EMAIL_BACKEND
in my settings.py
.
If you just want to get things up and running, you can display emails in the console by putting this in your settings.py
:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
More info in the docs: https://docs.djangoproject.com/en/stable/topics/email/#email-backends
Solution 2:[2]
if you want use smtp set following code in settings.py:
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'password'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | n_moen |
Solution 2 | sajad mohammadi |