473,799 Members | 3,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONTS

Ive just learned that CDONTS is not available of Server 2003.
So, I've been trying to make sense out of what I can read.
I have succeeded in completely confusing myself.

In one place Microsoft suggests that I can install CDONTS from Server 2000
but it doesn't suggest where I get CDONTS.
Other reading suggests that CDOSYS is a much better solution. Although it
is never explicitly stated, it is implied (or at least I infer) that CDOSYS
is installed with Server 2003.

At activeserver.co m, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateOb ject("CDO.Messa ge")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody
objMail.HTMLBod y = sHTMLBody

which leads me to believe that the CDO object is being created properly.

However, when I say
objMail.send

The page fails with a "there is a problem with this page and it cannot be
displayed" message.

My questions are
1. How do I know that CDOSYS is properly installed.
2. If CDOSYS isn't installed, how do I install it?
3. If CDOSYS is installed, then what else could be the problem?

Thanks folks,

-dmd-
If the obvious weren't so obscure, I'd be less confused.
Jul 22 '05 #1
4 4162
more info on cdo
http://www.aspfaq.com/show.asp?id=2026

see here for info about getting a usable error message
http://www.aspfaq.com/show.asp?id=2109

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Mac Davis" <ne**@blindside d.org> wrote in message
news:O6******** ******@TK2MSFTN GP12.phx.gbl...
Ive just learned that CDONTS is not available of Server 2003.
So, I've been trying to make sense out of what I can read.
I have succeeded in completely confusing myself.

In one place Microsoft suggests that I can install CDONTS from Server 2000
but it doesn't suggest where I get CDONTS.
Other reading suggests that CDOSYS is a much better solution. Although it
is never explicitly stated, it is implied (or at least I infer) that
CDOSYS is installed with Server 2003.

At activeserver.co m, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateOb ject("CDO.Messa ge")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody
objMail.HTMLBod y = sHTMLBody

which leads me to believe that the CDO object is being created properly.

However, when I say
objMail.send

The page fails with a "there is a problem with this page and it cannot be
displayed" message.

My questions are
1. How do I know that CDOSYS is properly installed.
2. If CDOSYS isn't installed, how do I install it?
3. If CDOSYS is installed, then what else could be the problem?

Thanks folks,

-dmd-
If the obvious weren't so obscure, I'd be less confused.

Jul 22 '05 #2
On Mon, 21 Feb 2005 09:43:19 -0500, "Mac Davis" <ne**@blindside d.org>
wrote:
Ive just learned that CDONTS is not available of Server 2003.
So, I've been trying to make sense out of what I can read.
I have succeeded in completely confusing myself.

In one place Microsoft suggests that I can install CDONTS from Server 2000
but it doesn't suggest where I get CDONTS.
Other reading suggests that CDOSYS is a much better solution. Although it
is never explicitly stated, it is implied (or at least I infer) that CDOSYS
is installed with Server 2003.

At activeserver.co m, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateOb ject("CDO.Messa ge")
objMail.From = sFrom
objMail.To = sTo
objMail.Subjec t= sSubject
objMail.TextBo dy = sTextBody
objMail.HTMLBo dy = sHTMLBody

which leads me to believe that the CDO object is being created properly.

However, when I say
objMail.send

The page fails with a "there is a problem with this page and it cannot be
displayed" message.

My questions are
1. How do I know that CDOSYS is properly installed.
It installs with Server2003/IIS6
2. If CDOSYS isn't installed, how do I install it?
See #1.
3. If CDOSYS is installed, then what else could be the problem?


Your error isn't necessarily due to CDO.SYS not working. Do you
receive an email when you send one? Try this script:

http://www.aspfaq.com/show.asp?id=2026

Keep in mind you need a SMTP server you can use, that allows you to
send through it. The SendUsing parameter in that script is set to 2
to send using the port, and the SMTP server is specified n the
SMTPServer parameter.

Jeff
Jul 22 '05 #3
Thanks gentlemen. I now have it working.

However, I haven't a clue what is happening.

Most specifically, this segment of code mystifies me.

sch = "http://schemas.microso ft.com/cdo/configuration/"

Set cdoConfig = CreateObject("C DO.Configuratio n")

With cdoConfig.Field s
.Item(sch & "sendusing" ) = 2 ' cdoSendUsingPor t
.Item(sch & "smtpserver ") = "<enter_mail.se rver_here>"
.update
End With

Could you explain what the lines beginning with .Item are doing. I am at a
loss as to why a URL would be included here. It seems that a couple of
constants would fill the bill.
Does this in some way indicate that each time I try to send mail, I have to
connect to a Microsoft server? That makes no sense.

I note that I can include the metadata statement in lieu of the URL but I'll
be darned it I understand the URL.

Thanks,

Mac
--

-dmd-
If the obvious weren't so obscure, I'd be less confused.
"Mac Davis" <ne**@blindside d.org> wrote in message
news:O6******** ******@TK2MSFTN GP12.phx.gbl...
Ive just learned that CDONTS is not available of Server 2003.
So, I've been trying to make sense out of what I can read.
I have succeeded in completely confusing myself.

In one place Microsoft suggests that I can install CDONTS from Server 2000
but it doesn't suggest where I get CDONTS.
Other reading suggests that CDOSYS is a much better solution. Although it
is never explicitly stated, it is implied (or at least I infer) that
CDOSYS is installed with Server 2003.

At activeserver.co m, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateOb ject("CDO.Messa ge")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody
objMail.HTMLBod y = sHTMLBody

which leads me to believe that the CDO object is being created properly.

However, when I say
objMail.send

The page fails with a "there is a problem with this page and it cannot be
displayed" message.

My questions are
1. How do I know that CDOSYS is properly installed.
2. If CDOSYS isn't installed, how do I install it?
3. If CDOSYS is installed, then what else could be the problem?

Thanks folks,

-dmd-
If the obvious weren't so obscure, I'd be less confused.

Jul 22 '05 #4
Use parentesis on the method send:

objMail.send()

Hi, Fabio

"Mac Davis" <ne**@blindside d.org> wrote in message
news:O6******** ******@TK2MSFTN GP12.phx.gbl...
Ive just learned that CDONTS is not available of Server 2003.
So, I've been trying to make sense out of what I can read.
I have succeeded in completely confusing myself.

In one place Microsoft suggests that I can install CDONTS from Server 2000
but it doesn't suggest where I get CDONTS.
Other reading suggests that CDOSYS is a much better solution. Although it
is never explicitly stated, it is implied (or at least I infer) that CDOSYS is installed with Server 2003.

At activeserver.co m, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateOb ject("CDO.Messa ge")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject = sSubject
objMail.TextBod y = sTextBody
objMail.HTMLBod y = sHTMLBody

which leads me to believe that the CDO object is being created properly.

However, when I say
objMail.send

The page fails with a "there is a problem with this page and it cannot be
displayed" message.

My questions are
1. How do I know that CDOSYS is properly installed.
2. If CDOSYS isn't installed, how do I install it?
3. If CDOSYS is installed, then what else could be the problem?

Thanks folks,

-dmd-
If the obvious weren't so obscure, I'd be less confused.

Jul 22 '05 #5

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

Similar topics

1
4707
by: | last post by:
Hi Guys CDONTS works with all sites hosted on my test server bar one (which surely rules out a miscomputation of the Default SMTP server in IIS). I have tried uploading the file with make up the site in which CDONTS to one of the IIS "sites" which is known to work with CDONTS, and still, no email received. The bad mail dir gets three files each time, the error is:
29
3547
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the rest of the code setting objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its properties. Do I need to somehow set IIS5 to make objCDONTS.Send work?
7
2548
by: Mario Leduc | last post by:
Hi, I have a page that sends user comments with CDONTS, works fine. Until I put a URL (http://192.168.0.1). If I use http://domain.com it works fine. Why with the numeric URL, CDONTS does not send the mail?? Thanks
8
3954
by: Boris | last post by:
Could someone please tell me if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server and if so, how can I send emails from ASP page... Many thanks in advance
4
4336
by: F | last post by:
Hi Some one has posted this question on 10th August, as CDONTS is not working on windows 2003 serever. I have the same problem and I copied CDONTS.DLL from Windows 2000 Server and registered on Win 2003 server but it giving the error on line when I calling method send of the object. Error is Microsoft VBScript runtime error '800a0046'
16
3175
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine. They're getting an error from: Set objCDOMail = Server.CreateObject("CDONTS.NewMail") I know that the new format is:
9
6276
by: scott | last post by:
I have my win 2003 server setup correct with SMTP. I know because I've tested it ok. However, when I issue CODE 1 below, I get ERROR 1 below. I thought having SMTP installed correctly allowed ASP to use CDONTS as a mail generator. Is there more to it? CODE 1: Set objMail = Server.CreateObject("CDONTS.NewMail")
2
9387
by: microsoft.public.dotnet.languages.csharp | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples on how to do this using CDO. Unfortunately, I don't have that option. I must use C# and CDonts. Do you have any ideas or code? In traditional ASP, the code was: objMail = Server.CreateObject("CDONTS.NewMail"); objMail.To =...
5
27709
by: MichaelK | last post by:
What do I need to do to enable CDONTS om my macine to make it working I'm testing the code: Dim objCDO Set objCDO = Server.CreateObject("CDONTS.NewMail") objCDO.To = "xyz@xxxxx.com" objCDO.From = "zyx@zzzzz.com" objCDO.Subject = "TESST CDONTS MAIL" objCDO.Body = "SOME TEXT TO SEND OVER"
7
2891
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the functionality of cdonts so that I can test/develop on my local machine, preferably without actually sending any mail to the persons involved.
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.