Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Weird error with godaddy email. intermitttent.

Posted on 2008-10-27
2
Medium Priority
?
743 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
kevp75 earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

688 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