我知道有幾個線程與此相關,但沒有人回答我的問題。CDO.MESSAGE.1傳輸失敗連接到服務器
僅僅是代碼(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沒有工作。 - 將端口更改爲465,25,587。
- 在AntiVirus中排除我的.exe(此程序)。
我有那些smtpusessl,autheticate等
我不知道該怎麼做,並再檢查。系統是否可能阻止此類活動?
嗨,謝謝你的回答!我在另一臺計算機上有相同的代碼,它工作的很好,不知道這是否是問題。但是,我試圖將安全性較低的應用程序面板的訪問權切換爲開啓和關閉,但仍然沒有運氣。 – Anthony