我正在使用CDOSYS作为我们的asp经典邮件。
好的,用我的雅虎帐号测试邮件,它会完美地发送出去。然而,我使用我的客户电子邮件和密码,它会出现一个错误‘8004020 e’。我搞不懂它为什么要这么做。我的客户甚至更改了他们的密码,以确保登录信息没有问题。
我将返回并使用我的雅虎电子邮件和密码,并再次,它的工作。只是不跟他们在一起。你知道它为什么会对一个账户起作用,而对另一个账户不起作用吗?
代码如下:
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
发布于 2015-12-23 20:51:23
该错误通常是由下列之一引起的
您已经验证了1和2,所以检查#3
https://stackoverflow.com/questions/34423557
复制相似问题