Home All Groups Group Topic Archive Search About

"CDO for Windows 2000 Library" on an XP server



Author
23 Feb 2005 12:15 PM
Luis
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***@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?

Author
23 Feb 2005 3:20 PM
Ray Costanzo [MVP]
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

Show quote
"Luis" <and***@webmail.co.za> wrote in message
news:054b01c519a1$5c092760$a401280a@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***@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?
>

AddThis Social Bookmark Button