Solved

Weird error with godaddy email. intermitttent.

Posted on 2008-10-27
2
713 Views
Last Modified: 2012-08-14
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
Comment
Question by:Andrew Davis
2 Comments
 
LVL 25

Accepted Solution

by:
kevp75 earned 500 total points
ID: 22825187
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
 
LVL 18

Author Comment

by:Andrew Davis
ID: 22829233
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using AJAX to call classic ASP function 4 84
syntax error on ASP ? 6 43
Send to Print Preview database record with one click 3 48
asp syntax 3 37
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now