yandex邮件未与smtp发送

时间:2018-09-27 18:24:05

标签: python-3.x smtp yandex

我有一封自定义电子邮件 mail@mycustomdomain.ru委托给mail.yandex.ru 这是我的smtp设置:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'ssl://smtp.yandex.ru' # mail service smtp
EMAIL_HOST_USER = 'mail@mycustomdomain.ru' # email id
EMAIL_HOST_PASSWORD = '8324234LO2' #password
EMAIL_PORT = 465#
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'mail@mycustomdomain.ru'

但是电子邮件没有发送。我该怎么办?

1 个答案:

答案 0 :(得分:0)

您可以更改:

EMAIL_HOST = 'ssl://smtp.yandex.ru' # mail service smtp

收件人:

EMAIL_HOST = 'smtp.yandex.ru' # mail service smtp