Django send_mail获取服务器不支持的STARTTLS扩展错误(交换服务器邮件)

时间:2018-06-11 02:45:27

标签: django python-3.x exchange-server sendmail

我有django.core.mail的设置如下:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.mysite.com'
EMAIL_HOST_USER = 'contact@mysite.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 25
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER

我收到了错误

STARTTLS extension not supported by server

当我将EMAIL_USE_TLS = True更改为EMAIL_USE_TLS = False时,我收到如下错误:

SMTP AUTH extension not supported by server 

测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:测试html文件:

p{
display:inine-block;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
max-width: 100px;

}

p:hover{
overflow:visible;
}
<html>
<head>
</head>
<body>

<div class="hide">
<p>qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq</p>
</div>

</body>
</html>

0 个答案:

没有答案