Django 5.1 email [WinError 10061] [закрыто]
I want to send an e-mail from jango I think I have configured everything correctly but I get an error: ConnectionRefusedError: [WinError 10061] Connection not established because the end computer rejected the connection request. help please. here are my settings:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_PORT = 465
EMAIL_USE_TLS = False
EMAIL_USE_SSL = True
EMAIL_HOST_USER = \['Vlad.Olegov750@yandex.ru'\]
EMAIL_HOST_PASSWORD = 'пароль'
RECIPIENTS_EMAIL = \['Vlad.Olegov750@yandex.ru'\]
DEFAULT_FROM_EMAIL = \['Vlad.Olegov750@yandex.ru'\]
SERVER_EMAIL = \['Vlad.Olegov750@yandex.ru'\]
EMAIL_ADMIN = \['Vlad.Olegov750@yandex.ru'\]
Tried changing the port to 587. but without success