如何修复经典.asp页面中发送电子邮件中的错误?

时间:2012-05-15 04:15:00

标签: email asp-classic cdonts

来自inquiry.html的Inquiry.asp页面调用方法=“post”
Inquiry.asp页码

  <%
        message=""
        message=message & "Name : " & Request.Form("txtName") & vbcrlf
        message=message & "Designation : " & Request.Form("txtDesignation") & vbcrlf
        message=message & "Organization : " & Request.Form("txtOrganization") & vbcrlf
        message=message & "Address : " & Request.Form("txtAddress") & vbcrlf
        message=message & "City : " & Request.Form("txtCity") & vbcrlf 
        message=message & "State : " & Request.Form("txtState") & vbcrlf
        message=message & "Country : " & Request.Form("cmbCountry") & vbcrlf
        message=message & "Phone : " & Request.Form("txtPhone") & vbcrlf
        message=message & "Email : " & Request.Form("txtEmail") & vbcrlf
        message=message & "Fax : " & Request.Form("txtFax") & vbcrlf
        message=message & "Category : " & Request.Form("cmbCategory") & vbcrlf
        message=message & "Query : " & Request.Form("txtQuery") & vbcrlf
        message=message & "Product of Interest : " & Request.Form("txtgpo") & vbcrlf
        message=message & "Product of Interest : " & Request.Form("txtgta") & vbcrlf
        message=message & "Product of Interest : " & Request.Form("txtgpu") & vbcrlf
        message=message & "Product of Interest : " & Request.Form("txtsw") & vbcrlf
        message=message '& "**********************************************************"

         set objmail=server.createobject("CDONTS.NewMail")

         objmail.bodyformat = 0
         objmail.to = "info@ankurscientific.com"

        objmail.To = "abc@gmail.com"
        'objmail.From = Request.Form("txtemail")  
        objmail.From = "info@domain.com"
         objmail.Subject="Enquiry"
         objmail.BodyFormat = 1
         objmail.Body=message
         objmail.Send
         set objmail=nothing

      %>

我收到错误:'80070003' /sendmail.asp,行号:xx

1 个答案:

答案 0 :(得分:0)

这是对您的问题的解释和解决方案:http://support.microsoft.com/kb/238956