Link to home
Start Free TrialLog in
Avatar of Andrew Davis
Andrew DavisFlag for Australia

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)


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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of kevp75
kevp75
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andrew Davis

ASKER

i agree with you that it is a godaddy issue, can you recommend a service that will allow smtp relay? hopefully not too expensive;)