Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 755
  • Last Modified:

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

0
Andrew Davis
Asked:
Andrew Davis
1 Solution
 
kevp75Commented:
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:
relay-hosting.secureserver.net

to
smtpout.secureserver.net

and make sure your login credentials are correct
0
 
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;)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now