Django: Отправка электронной почты с моего личного хоста на любую электронную почту

Я хочу отправить E-Mail с info@MyDomainName.com на farhad.dorod@hotmail.com. Но когда я нажимаю кнопку отправить, у меня возникает ошибка:

В settings.py страница:

EMAIL_HOST = 'mail.MyDomainName.com'  (For example)
EMAIL_PORT = 465
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'info@MyDomainName.com' (For example)
EMAIL_HOST_PASSWORD = '1234567890'  (For example)

И в views.py

def ResetPassword(request):
    subject="Your new password is"
    message="Your new password is: 1234567890"
    from_email= settings.EMAIL_HOST_USER
    recipient_list= ['farhad.dorod@hotmail.com',]
    send_mail(subject, message, from_email, recipient_list)
    
    messages.success(request, 'An email has been sent to your given address please check  your mail')

    return HttpResponseRedirect('/forgotpassword')

Теперь моя Ошибка такова:

Exception has occurred: TimeoutError
[WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Пожалуйста, помогите мне

Спасибо всем.

Вернуться на верх