473,385 Members | 2,003 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,385 software developers and data experts.

"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 3487
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: owen | last post by:
For some reason pop up windows are no longer working on my pc. And no, I dont have any popup killer installed. The problem is across all websites I look at on my browser. Is there any...
11
by: Codemonkey | last post by:
Hi, I am writing an App in .Net that involves some scheduling of tasks. I was wondering if anybody has come accross any components or examples of how to implement a schedule manager like the one...
0
by: sztonix | last post by:
Hi all, I encountered a crystal report deployment problem. I make reports with Crystal Report for Visual Studio .NET 2003. It works fine in the development machine. And then make setup...
3
by: Andyza | last post by:
My prod box consists of the following: - Windows 2003 Server - Exchange 2003 If I use cdoConfig to send emails from my .asp application do I need to include the following typelib on my .asp...
0
by: Peter | last post by:
When I issue call sqlj.install_jar('file:///f:/jars/mail.jar','MAIL'); I get the messages SQL4301N Java or .NET interpreter startup or communication failed, reason
1
by: bonnie.tangyn | last post by:
Hello all I get Too few parameters expected 2 error and "The MS Jet Database engine cannot find the input table or query "myTempTablename". Make sure it exists and that its name is spelled...
2
by: Twitch | last post by:
Is there an event or "something" that happens where I can Log a message (or whatever) when a logon attempt fails when using "Windows Authentication". If not, I could just do my own logon screen,...
1
by: ashish | last post by:
Dim oCon Err.Clear Set oCon = Server.CreateObject("ADODB.Connection") If Err.Number = 0 Then '// '// Open an ADODB.Connection to the folder URL '// oCon.Provider = "ExOLEDB.DataSource"
5
by: Carmine [www.thetotalsite.it] | last post by:
Hi everyone, I get a really odd error while using SMTPClient.Send() function in ASP.Net. The error is the following: Dim smtp As New Net.Mail.SmtpClient("smtp.thetotalsite.it", 25) Dim bodyMSG...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.