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/for um/functio ns/functio ns_send_ma il.asp, line
198
Any suggestions on what might be wrong would be most appreciated. Thanks!
CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/cdhdnew/peermentoring/for
198
Any suggestions on what might be wrong would be most appreciated. Thanks!
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?
What IIS version?
ASKER
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?
IIS 6.0
I didn't think I had to have an SMTP adapter installed on the local machine. Was this an incorrect assumption?
ASKER
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?
ASKER
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I typed the code
<html>
<%
Set oMail = Server.CreateObject("CDO.M essage")
Set iConf = Server.CreateObject("CDO.C onfigurati on")
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?
<html>
<%
Set oMail = Server.CreateObject("CDO.M
Set iConf = Server.CreateObject("CDO.C
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It's working now. Thanks!
cool. thank you
AND/OR
do you have the correct authentication.