我有一封自定义电子邮件
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'
但是电子邮件没有发送。我该怎么办?
答案 0 :(得分:0)
您可以更改:
EMAIL_HOST = 'ssl://smtp.yandex.ru' # mail service smtp
收件人:
EMAIL_HOST = 'smtp.yandex.ru' # mail service smtp