Django send_mail导致错误61在Mac OSX上拒绝 [英] Django send_mail results in error 61 refused on Mac OSX
问题描述
遇到一个非常错误的错误。我在Mac OSX上运行Django,当我尝试从我的应用程序发送一封电子邮件时,它挂起并给我这个错误:错误61连接拒绝
Running into a very stange error. I'm running Django on my Mac OSX and when I tried to send an email from my application it hangs and gives me this error: "Error 61 Connection Refused"
任何想法?我没有打开防火墙。
Any ideas? I don't have my firewall turned on. I can upload an image of the error if needed.
推荐答案
您是否实际配置了 EMAIL _ *
settings.py中的设置?错误61是您将其保留在默认值上并且没有运行本地SMTP服务器时出现的错误。
Have you actually configured the EMAIL_*
settings in settings.py? Error 61 is the error you get if you leave it on the default values and you don't have a local SMTP server running.
或者,如彼得建议的,如果您已设置好,那么您可能需要使用与SMTP服务器的身份验证。
Alternatively, as Peter suggests, if you have set it up then you might need to use authentication with your SMTP server.
这篇关于Django send_mail导致错误61在Mac OSX上拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!