468,268 Members | 1,653 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

"CDO for Windows 2000 Library" on an XP server

I use CDO to send an email to users as part of a 'Reset
Password' functionality I have on a intranet site.

I use:
METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-
00C04FB1625D" NAME="CDO for Windows 2000 Library"
in my asp page to send the e-mail (via Exchange 2003). It
works fine if I host the site on a Windows 2000 box, but I
recently upgraded my dev box to Windows XP (SP1) and the
functionality has stopped working - the email does not get
sent to the user. If I Response.Write the err.Description
it returns "Object required".

The send mail code is:

<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-
00C04FB1625D" NAME="CDO for Windows 2000 Library" -->
<%
On Error Resume Next
Set cdoConfig = Server.CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "My Exchange Server
Name"
.Update
End With
Set cdoMessage = Server.CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "Me<me@mail.com>"
.To = UserMail 'this value gets pulled
from the db as per users details
.Subject = "Test"
.TextBody = MailMsg
.HTMLBody = MailMsg
.Send
End With

If err.number Then
Response.Write("<h2>Password Error</h2>")
Response.Write(err.Description)
End If

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

Should I be using "CDO for Windows 2000 Library" on a XP
box?

Is there a "CDO for Windows XP Library"?

Has the problem got anything to do with me trying to send
mail via Exchange 2003?

Jul 22 '05 #1
1 3238
Have you looked in your SMTP directory on the machine to see if the mail is
sitting in the queue? Anything in the event logs saying that mail can't be
relayed or something like that, perhaps?

Ray at work

"Luis" <an****@webmail.co.za> wrote in message
news:05****************************@phx.gbl...
I use CDO to send an email to users as part of a 'Reset
Password' functionality I have on a intranet site.

I use:
METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-
00C04FB1625D" NAME="CDO for Windows 2000 Library"
in my asp page to send the e-mail (via Exchange 2003). It
works fine if I host the site on a Windows 2000 box, but I
recently upgraded my dev box to Windows XP (SP1) and the
functionality has stopped working - the email does not get
sent to the user. If I Response.Write the err.Description
it returns "Object required".

The send mail code is:

<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-
00C04FB1625D" NAME="CDO for Windows 2000 Library" -->
<%
On Error Resume Next
Set cdoConfig = Server.CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "My Exchange Server
Name"
.Update
End With
Set cdoMessage = Server.CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "Me<me@mail.com>"
.To = UserMail 'this value gets pulled
from the db as per users details
.Subject = "Test"
.TextBody = MailMsg
.HTMLBody = MailMsg
.Send
End With

If err.number Then
Response.Write("<h2>Password Error</h2>")
Response.Write(err.Description)
End If

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

Should I be using "CDO for Windows 2000 Library" on a XP
box?

Is there a "CDO for Windows XP Library"?

Has the problem got anything to do with me trying to send
mail via Exchange 2003?

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Carmine [www.thetotalsite.it] | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.