经典的ASP,发送电子邮件错误'8004020f“ [英] Classic ASP, Sending E-mail error '8004020f'

查看:2282
本文介绍了经典的ASP,发送电子邮件错误'8004020f“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到的错误,当我发送邮件


  

错误'8004020f'结果
  /sis/mail.asp,线路168


下面我code。

 设置cdoConfig =的Server.CreateObject(CDO.Configuration)cdoConfig.Fields.Item(http://schemas.microsoft.com/cdo/configuration/sendusing)= 2
cdoConfig.Fields.Item(\"http://schemas.microsoft.com/cdo/configuration/smtpserver\")=\"mail.dartconsulting.info\"
cdoConfig.Fields.Item(http://schemas.microsoft.com/cdo/configuration/smtpserverport)= 25
cdoConfig.Fields.Update设置cdoMessage =的Server.CreateObject(CDO.Message)
设置cdoMessage.Configuration = cdoConfig
cdoMessage.From =darteam28@gmail.comcdoMessage.To =电子邮件
cdoMessage.Subject =您的密码
cdoMessage.HtmlBody =<表>< TR>< TD>< / TD>< / TR>中和放大器; _
                < TR>< TD colspan值= 2>请在下面找到您的密码和LT; / TD>< / TR>中和放大器; _
                < TR>< TD>密码:放大器; NBSP;&安培; NBSP;&放大器;密码&安培;< / TD>< / TR>中和放大器; _
                < TR>< TD>用户名:​​放大器; NBSP;&安培; NBSP;&放大器; UID和放大器;< / TD>< / TR>中和放大器; _
                < TR>< TD> EMAILID:放大器; NBSP;&安培; NBSP;&放大器;电子邮件&安培;< / TD>< / TR>中和放大器; _
                < TR>< TD colspan值= 2>请登录并确认/更改EMAILID< / TD>< / TR><表>cdoMessage.Send
设置cdoMessage =什么
设置cdoConfig =什么


解决方案

有没有足够的信息,在您的文章来解决问题,因为Vogel612说。然而,迄今为止最有可能的原因是服务器 mail.dartconsulting.info 需要身份验证,而你正试图无需验证发送。

我从本地计算机连接到该服务器,它给了我 550需要进行身份验证继电器,所以即使你所在的同一台服务器上有一个高的可能性,您还需要进行身份验证。

请参考以下网站:
http://www.powerasp.net/content/new/sending_email_cdosys.asp
(或者做一个谷歌搜索)关于如何使用CDO发送电子邮件身份验证。

I am getting error, when I send a mail

error '8004020f'
/sis/mail.asp, line 168

Here my code.

Set cdoConfig = Server.CreateObject( "CDO.Configuration")

cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail.dartconsulting.info"
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 
cdoConfig.Fields.Update

Set cdoMessage = Server.CreateObject ("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "darteam28@gmail.com"

cdoMessage.To=email
cdoMessage.Subject = "Your  Password"
cdoMessage.HtmlBody = "<table><tr><td></td></tr>"&_
                "<tr><td colspan=2>Please find below your password</td></tr>"&_
                "<tr><td>Password :&nbsp;&nbsp;"&password&"</td></tr>"&_
                "<tr><td>UserName :&nbsp;&nbsp;"&uid&"</td></tr>"&_
                "<tr><td>EmailID :&nbsp;&nbsp;"&email&"</td></tr>"&_
                "<tr><td colspan=2>Please login and confirm/change your emailid</td></tr><table>"

cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing

解决方案

There isn't enough information in your post to solve the problem, as Vogel612 said. However, by far the most likely cause is that the server mail.dartconsulting.info requires authentication, while you are trying to send without authentication.

I have connected to this server from my local computer and it gave me 550 Authentication is required for relay, so even if you're located on the same server there's a high likelihood that you also need to be authenticated.

Please refer to this website: http://www.powerasp.net/content/new/sending_email_cdosys.asp (or do a Google search) on how to send email with CDO with authentication.

这篇关于经典的ASP,发送电子邮件错误'8004020f“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆