目前我们有一个服务器(Windows 2003 sp2),它在夜间运行 python 脚本,然后通过电子邮件向我们发送脚本是否正确运行,我将这些脚本转移到一个新服务器(也是 Windows 2003 SP2),但是当脚本尝试使用smtplib 模块,我在 pythonwin IDE 中收到以下错误。
File "D:\Python26\ArcGIS10.0\lib\smtplib.py", line 239, in __init__
(code, msg) = self.connect(host, port)
File "D:\Python26\ArcGIS10.0\lib\smtplib.py", line 296, in connect
(code, msg) = self.getreply()
File "D:\Python26\ArcGIS10.0\lib\smtplib.py", line 340, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
SMTPServerDisconnected: Connection unexpectedly closed
我需要在服务器上做些什么来让脚本发送电子邮件吗?
谢谢