Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

80040211 Error with Email using CDO 2

Status
Not open for further replies.

uncgis

MIS
Apr 9, 2004
58
US
I can get the email to work whenever I am using my testbox, which is a XP Pro workstation...but whenever I try the code on the Server 2003...I get the 80040211 error. I have turned the firewall off on the Server and still get the message. Has anyone else had this problem and figured out what it was.

Thanks

<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "<IP Adrress of my Server>"
.Item(cdoSMTPAuthenticate) = 1
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "MyEmail@Email.com"
.To = "MyEmail@Email.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
 
Windows Server 2003 does not install Collaboration Data Objects (CDO) for NTS (CDONTS). Applications that use CDONTS do not function on Windows Server 2003.

-DNG
 
You need to convert to use CDOSYS.

Do a google search and you'll find a lot of stuff, or even just try the search feature for this forum.
 
DO you have an example of CDOSYS?

Is my code above not CDOSYS?

Thanks
 
Oh, actually I didn't look at the code... I was just adding my 2cents to use CDOSYS instead of CDONTS on 2000 and 2003.

[hammer]

Yes, it does look like CDOSYS.

Are your messages stacking up in \mailroot\badmail ?

Are your relaying through an Exchange server?
 
The mail is not backing up in badmail and I am not using an exchange server...

Is there any way to check to see if port 25 is being blocked by anything?

I know that there is mcafee on the server and I have allowed it to open port 25...but it is acting like port 25 is still blocked. I know that there is nothing on the network blocking it..

Thanks
 
Yeah the SMTP is running...it is actually a remote mail server. So, do I need to make sure the SMTP is running on the webserver?

Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top