Solved

Weird error with godaddy email. intermitttent.

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

762 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