CDO.Message.1 error '80040213'

Weezi
Weezi used Ask the Experts™
on
Hi I'm getting this error message on a form I'm using on an easyspace windows platform. smtp.iomart.com is the smtp deatils that easyspace gave me. Apparently the companies email isn't hosted with easyspace...would that be the reson why the form wouldn't work?
If so can you sugets an alternative.

Many thanks in advance.

Louise

<%@LANGUAGE="VBSCRIPT"%>
<%
dim oCdoMsg, oCdoConfg, strReferer, strServer, strClientIP, strServerIP, blnSpam
'Basic Email Component configuration
'Email component to use. For this sample file, it can be either CDONTS or CDOSYS. 
EmailComponent = "CDOSYS"
 
'Originating Email address. Remember that in some servers this must be an existing email account.
EmailFrom = "info@eveshammechservices.co.uk" 
 
'Destination Email address.
EmailTo = "info@eveshammechservices.co.uk" 
 
'Define the subject of the email
EmailSubject = "Enquiry from EMS Website"
 
'Define the subject of the email
ConfirmationPage = "../thanks.html"
 
 
 
'This gets all submitted form data
 
 
for i = 1 to request.form.count
	strEmailContent = strEmailContent & request.form.key(i)&": "& request.form.item(i) & vbcrlf
next
 
%>
<%
SELECT Case EmailComponent
 
Case "CDONTS"
 
Set Mailer = Server.CreateObject("CDONTS.NewMail")
Mailer.From = EmailFrom
Mailer.To = EmailTo
Mailer.Subject = EmailSubject
Mailer.Body = strEmailContent
Mailer.Send
Set Mailer = Nothing 
 
Case "CDOSYS"
 
set Mailer = server.createobject("CDO.Message") 
Mailer.From = EmailFrom
Mailer.To = EmailTo
Mailer.Subject = EmailSubject
Mailer.TextBody = strEmailContent
with Mailer.Configuration
	.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
	.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.iomartmail.com"
	.Fields.Update
end with
Mailer.Send
set Mailer = Nothing
End select
 
Response.Redirect(ConfirmationPage)
%>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
That error means the server address (smtp.iomart.com) couldn't be resolved.  In other words it doesn't exist.  You can verify this by trying commands like tracert, nslookup or a ping on that address.  You should check with the company that provides your (or your client's) web hosting or email hosting to get a valid server address.  It might just be a typo but that is why you are getting that error.

Let me know if you have a question.

bol

Author

Commented:
The smtp.iomart.comb was correct, I just changed the script I was using and it seemed to to a PHP sendmail script and it worked fine

Commented:
Actually that server address is just back up and working now.  The problem was the address and that server.  Either a DNS or other server type issue but it seems to be resolved now.  I am not saying your other changes weren't need too for all of your page to work but the error WAS because of the server.

bol

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial