473,383 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

CDO error on Windows 2003 Server

Hello.
I am trying to send an email from ASP code, using CDO.Message object on a
Windows 2003 server
and I get the following error:
CDO.Message.1 error '80040213'

The transport failed to connect to the server.

The error occurs in the line where the Send method is called: "objMsg.Send".
Here is my code:

Sub
SendEmail(strFromName,strFromAddr,strRecipName,str RecipAddr,strCC,strSubject
,strBody,strFormat)
dim objMsg,objConf
set objMsg = Server.CreateObject("CDO.Message")
set objConf = Server.CreateObject("CDO.Configuration")
objConf.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "localhost"

objConf.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverpor
t") = 25
objConf.Fields("http://schemas.microsoft.com/cdo/configuration/SendUsing")
= 2
objConf.Fields.Update()
objMsg.Configuration = objConf
objMsg.From = strFromAddr
objMsg.To = strRecipAddr
objMsg.CC = strCC
objMsg.Subject = strSubject
if CInt(strFormat)=0 then objMsg.HtmlBody = strBody else objMsg.TextBody =
strBody
objMsg.Send
set objConf = nothing
set objMsg = nothing
End Sub

I really cannot find the problem, can someone help?

Thanks a lot.
Jul 19 '05 #1
1 3330
On Thu, 11 Mar 2004 11:38:23 +0200, "Mihaela M."
<mi*************@s-concept.net> wrote:
Hello.
I am trying to send an email from ASP code, using CDO.Message object on a
Windows 2003 server
and I get the following error:
CDO.Message.1 error '80040213'

The transport failed to connect to the server.

The error occurs in the line where the Send method is called: "objMsg.Send".
Here is my code:

Sub
SendEmail(strFromName,strFromAddr,strRecipName,st rRecipAddr,strCC,strSubject
,strBody,strFormat)
dim objMsg,objConf
set objMsg = Server.CreateObject("CDO.Message")
set objConf = Server.CreateObject("CDO.Configuration")
objConf.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "localhost"

objConf.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverpor
t") = 25
objConf.Fields("http://schemas.microsoft.com/cdo/configuration/SendUsing")
= 2
objConf.Fields.Update()
objMsg.Configuration = objConf
objMsg.From = strFromAddr
objMsg.To = strRecipAddr
objMsg.CC = strCC
objMsg.Subject = strSubject
if CInt(strFormat)=0 then objMsg.HtmlBody = strBody else objMsg.TextBody =
strBody
objMsg.Send
set objConf = nothing
set objMsg = nothing
End Sub

I really cannot find the problem, can someone help?


An obvious question is "Did you install SMTP on the server?" The
followup is did you configure it to accept connections from itself
without authenticating? The SMTP group or Windows Server groups can
help on these processes.

Jeff
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
5
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE...
1
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on...
4
by: Matthew Louden | last post by:
My ASP.NET application is working fine when I run under IIS Personal Web Server in Windows 2000 machine. However, after I upload all the files to the Windows Server 2003 machine, and tried to run...
4
by: Matthew Louden | last post by:
My ASP.NET application runs ok locally, but after I upload all the files to IIS in Windows Server 2003 Standard Edition, and no longer works. This has the following error messages: Configuration...
0
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To =...
1
by: RedEagle | last post by:
Hi all, I have the following problem with ASP.NET running on Windows 2003. My configuration is: 1) Windows 2003 Server Standard 2) ASP.NET running in IIS5 Isolation mode (aspnet_wp.exe is alive...
10
by: RedEagle | last post by:
Hi All! Do you remember me? I am that desperate who had this error for a while: --- Compilation Error Description: An error occurred during the compilation of a resource required to service...
16
Frinavale
by: Frinavale | last post by:
The following article is directed at people who are experiencing an HTTP/1.1 500 Internal Server Error while using Visual Studio 2003. The error message typically sounds something like: The web...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.