且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Django抛出此错误:SMTPException:服务器不支持STARTTLS扩展

更新时间:2023-02-01 08:03:58

感谢Reto, />
我现在在第二个服务器上安装了exim4,
我尝试了你的建议,然后是抛出错误'AUTHException:'。

所以终于我发现我不得不再说两条线。所以现在我的setting.py文件看起来像这样:

Thanks Reto,
I installed the exim4 now on the second server and I tried your suggestion and then it was throwing error 'AUTHException:' .
So finally I figured out that I had to comment out two more lines. So now my setting.py file looks like this:

EMAIL_HOST = 'localhost'
#EMAIL_HOST_USER = 'username'  # username of one of my user on the first server
#EMAIL_HOST_PASSWORD = 'password'
EMAIL_PORT = 25
#EMAIL_USE_TLS = True

现在正在工作!!! _
再次感谢Reto。

and Now it's working!!!
Thanks again Reto.