首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >CDOSYS错误“8004020e”发送给Yahoo

CDOSYS错误“8004020e”发送给Yahoo
EN

Stack Overflow用户
提问于 2015-12-22 19:59:23
回答 1查看 5.6K关注 0票数 2

我正在使用CDOSYS作为我们的asp经典邮件。

好的,用我的雅虎帐号测试邮件,它会完美地发送出去。然而,我使用我的客户电子邮件和密码,它会出现一个错误‘8004020 e’。我搞不懂它为什么要这么做。我的客户甚至更改了他们的密码,以确保登录信息没有问题。

我将返回并使用我的雅虎电子邮件和密码,并再次,它的工作。只是不跟他们在一起。你知道它为什么会对一个账户起作用,而对另一个账户不起作用吗?

代码如下:

代码语言:javascript
运行
复制
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") =MailServer
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true 'Use SSL for the connection (True or False)
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60


' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = emailAdd
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = pass

myMail.Configuration.Fields.Update
EN

Stack Overflow用户

发布于 2015-12-23 20:51:23

该错误通常是由下列之一引起的

  1. 错误的SMTP服务器/端口
  2. 不正确的登录/密码
  3. 根据SMTP服务器发送的地址无效(域错误)

您已经验证了1和2,所以检查#3

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34423557

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档