我知道有几个与此相关的主题,但是没有一个主题回答了我的问题。
只是代码(VBScript):
With cdomsg.Configuration.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'NTLM method
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"
.Item("http://schemas.microsoft.com/cdo/configuration/smptserverport") = 587
.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "[email protected]"
.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "pass"
.Update
End With
使用该代码,一切都可以在我的计算机上正常工作。但是在其他PC上会出现此错误:
CDO.MESSAGE.1传输无法连接到服务器。
我所做的事情:
telnet
端口25、465、587进行检查。只有465无效。我有那些smtpusessl,autheticate等。
我不知道该怎么办和检查。系统是否有可能阻止这种活动?
我发现了此问题的原因,似乎是ISP导致了此问题。我已经在3台以上的计算机中尝试了2个以上的ISP,例如A,B,C。A和B可以在相同的代码下正常工作,但是每台计算机都有C提供程序错误。使用端口587或465都可以正常工作。我不太了解这个端口,但是两者都可以正常工作。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句