Link to home
Start Free TrialLog in
Avatar of stev0931
stev0931

asked on

Error using CDOSYS for email

I am getting this error when I try to send email using CDOSYS for email inside of an ASP application running on Microsoft IIS:

CDO.Message.1 error '80040213'

The transport failed to connect to the server.

/cdhdnew/peermentoring/forum/functions/functions_send_mail.asp, line
198


Any suggestions on what might be wrong would be most appreciated.  Thanks!
Avatar of Irwin Santos
Irwin Santos
Flag of United States of America image

do you have SMTP on the server running as a service?

AND/OR

do you have the correct authentication.
Avatar of stev0931
stev0931

ASKER

SMTP is not running as a service on the local machine.  The ASP application we're using that requires CDOSYS email allowed us to specify an SMTP server in the web interface and we specified one - but it's different from the machine the ASP application using CDOSYS email is on.
install/enable SMTP.
What Server OS are your running?
What IIS version?
Windows Server 2003
IIS 6.0

I didn't think I had to have an SMTP adapter installed on the local machine.  Was this an incorrect assumption?
If there is any way to get CDOSYS to work without installing an SMTP adapter on the local machine, that would be best (we have a machine that already has SMTP on it that is dedicated to email)
are you specifying the SMTP server address of your dedicated mail system?
yes, through the web interface of the ASP application (it requests an SMTP server, and I specified the dedicated mail system)

I should note I have done nothing to configure CDOSYS on the machine running the ASP application.  Do I need to do something there?
ASKER CERTIFIED SOLUTION
Avatar of Irwin Santos
Irwin Santos
Flag of United States of America 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
SOLUTION
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
I typed the code


<html>
<%
Set oMail = Server.CreateObject("CDO.Message")
Set iConf = Server.CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.organization.edu"
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
iConf.Fields.Update
Set oMail.Configuration = iConf
oMail.To           = "steve@organization.edu"
oMail.From           = "steve@organization.edu"
oMail.Subject           = "Test1"
oMail.TextBody           = "Test2"
oMail.Send
Set iConf = Nothing
Set Flds = Nothing
%>
<h1>Hello!</h1>
</html>





and got the error



CDO.Message.1 error '80040213'

The transport failed to connect to the server.

/testemail.asp, line 16




Does something special need to be set up on smtp.organization.edu?  Any suggestions?
SOLUTION
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
It's working now.  Thanks!
cool. thank you