Link to home
Start Free TrialLog in
Avatar of matthersjr
matthersjr

asked on

CDO.Message.1 error '80040213'

I received the following error while trying to send email via CDO.
---
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
---

The error occurred at:  .send

How do I handle this error should a connection not be established?

Thanks,

Wills
Avatar of Sven
Sven
Flag of Germany image

Your SMTP server was not reachable. Check your settings of SMTP server / host, and check if it is running and on which port it is listening (standard 25).
Avatar of matthersjr
matthersjr

ASKER

Everything appeared to be okay. How would I write an asp script to check whether the smtp server is reachable prior to sending the email and if not to try again. Then should the server not be reachable to display an error message. Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Sven
Sven
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Definitely, would  not want to ignore the problem as it will only create more problems down the road. I can't afford to treat this issue like I did my car during college - something breaks, patch it and keep going.

I was using a test site while the error occurred. I then switched over to the production site and the email was sent without a problem. For the test web server: win2003 web edition (iis6), I have smtp enabled for the domain, but do not have it set for dev hosts, such as dev-testsite1; where the produciton is testsite1. Should I have configured an account for dev-testsite1 under the smtp server?
this is s.th. i can't tell you, cause I don't know ;)

Normally I think you only have to define ip and port for smtp and it should send the email. Maybe a local firewall blocks the smtp port?
I'll have to check the firewall(sonicwall soho3) as well; pretty sure that it allows it.