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.HTMLBody=fbody	'\\ HTML emails
	myMail.TextBody=msgbody	'\\ Incase you need to send a text email
	'\\ Configuration
	myMail.Configuration.Fields.Item _
	'Name or IP of remote SMTP server
	myMail.Configuration.Fields.Item _
	("") _
	'Server port
	myMail.Configuration.Fields.Item _
	("") _
    'response.write "email send " & &", "&

Open in new window

LVL 19
Andrew DavisManagerAsked:
Who is Participating?
kevp75Connect With a Mentor Commented:
your code looks fine, it could be an issue at godaddy though.

Make sure you have your account set to allow relays (I believe it's a 250 message limit), also you could try changing:


and make sure your login credentials are correct
Andrew DavisManagerAuthor Commented:
i agree with you that it is a godaddy issue, can you recommend a service that will allow smtp relay? hopefully not too expensive;)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.