Solved

Weird error with godaddy email. intermitttent.

Posted on 2008-10-27
2
708 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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 …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

20 Experts available now in Live!

Get 1:1 Help Now