Jump to content

asp error while sending mail


Guest sabaarshad

Recommended Posts

Guest sabaarshad

ErrorTechnical Information (for support personnel)Error Type:CDO.Message.1 (0x80040213)The transport failed to connect to the server. /mysite1/submit_Feedback.asp, line 26Browser Type:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM) Page:POST 185 bytes to /mysite1/submit_Feedback.aspPOST Data:txtName=saba&txtemail=sad&txtadd=asas&txtcity=sadas&txtstate=safasfas&txtzip=44000&txtcountry=Pakistan&txtmob=0355952218498&txtdescription=rere++hiei+ygdg+iuy+ieyw+iu+uiwe&Submit=Submit Time:Tuesday, May 16, 2006, 9:38:28 AM \\\\\\\\\\MINEEEE CODEE IS\\\\\\\\\\\\\\\\<%dim HTML1dim myMail '---send mail usin cdo '---configuration using cdo Set myMail = CreateObject("CDO.Message") set iConf = CreateObject("CDO.Configuration") Set Flds = iConf.Fields With Flds .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yahoo.com" .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 .Update End With myMail.Subject = "test email" myMail.From = "txtemail" myMail.To = "saba_sabu@hotmail.com" HTML1 = "This mail is automatically generated by website." & "<br><br>" myMail.HTMLBody = HTML1 Set myMail.Configuration = iConf myMail.Send%>

Link to comment
Share on other sites

The error is pretty simple, you're not connecting to Yahoo's smtp servers. According to Yahoo, their smtp servers are located at smtp.mail.yahoo.com.So at the very least, you should change this line:

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.yahoo.com"

To this:

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.mail.yahoo.com"

You may also need to set your your port to 587, simply by adding this line directly after the one above:

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587'if port 587 doesn't work, try port 25

If that doesn't work, try looking at this massive 8 part FAQ on troubleshooting CDO errors.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...