Andrew Davis
asked on
Weird error with godaddy email. intermitttent.
i have a section of code that is in a loop and sends out emails. All the emails are going to the same email address (SMS gateway) but the body changes, i get the following error.
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/myemailpage.asp, line 134
the weird thing is that the emails do actually still go, and the error doesnt happen every time, but does happen most of the time.
Below is the relevent code. The error points to the mymail.send line (last line)
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/myemailpage.asp, line 134
the weird thing is that the emails do actually still go, and the error doesnt happen every time, but does happen most of the time.
Below is the relevent code. The error points to the mymail.send line (last line)
Set myMail=CreateObject("CDO.Message")
myMail.Subject=fsub
myMail.From=ffrom
myMail.To=fto
myMail.cc="andrew@mydomain.com.au"
'myMail.HTMLBody=fbody '\\ HTML emails
myMail.TextBody=msgbody '\\ Incase you need to send a text email
'\\ Configuration
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="relay-hosting.secureserver.net"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update
'response.write "email send " & mymail.to &", "& mymail.cc
myMail.Send
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER