【问题标题】:CDO.MESSAGE.1 The transport failed to connect to the serverCDO.MESSAGE.1 传输无法连接到服务器
【发布时间】:2017-12-29 19:25:27
【问题描述】:

我知道有几个线程与此相关,但没有一个回答我的问题。

代码如下(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") = "robot@gmail.com"
  .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "pass"
  .Update
End With

使用该代码,我的电脑一切正常。但在其他 PC 上会出现此错误:

CDO.MESSAGE.1 传输无法连接到服务器。

我做过的事情:

  1. 通过 telnet 端口 25、465、587 检查。只有 465 不起作用。
  2. 将端口更改为 465、25、587。
  3. 在防病毒软件中排除我的 .exe(此程序)。

我有那些 smtpusessl、autheticate 等。

我不知道该怎么做和检查了。系统是否有可能阻止此类活动?

【问题讨论】:

    标签: vbscript cdo.message


    【解决方案1】:

    我找到了这个问题背后的原因,似乎是 ISP 造成的。我已经在超过 3 台计算机中尝试了超过 2 个 ISP,比如说 A、B、C。A 和 B 使用相同的代码可以正常工作,但每台计算机都有 C 提供程序错误。使用端口 587 或 465 都可以正常工作。我不太了解这个端口,但都可以正常工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-18
      • 1970-01-01
      • 1970-01-01
      • 2014-09-07
      • 1970-01-01
      相关资源
      最近更新 更多