473,320 Members | 1,910 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,320 software developers and data experts.

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.com, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateObject("CDO.Message")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject= sSubject
objMail.TextBody = sTextBody
objMail.HTMLBody = 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 4084
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**@blindsided.org> wrote in message
news:O6**************@TK2MSFTNGP12.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.com, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateObject("CDO.Message")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject= sSubject
objMail.TextBody = sTextBody
objMail.HTMLBody = 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**@blindsided.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.com, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateObject("CDO.Message")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject= sSubject
objMail.TextBody = sTextBody
objMail.HTMLBody = 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.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort
.Item(sch & "smtpserver") = "<enter_mail.server_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**@blindsided.org> wrote in message
news:O6**************@TK2MSFTNGP12.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.com, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateObject("CDO.Message")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject= sSubject
objMail.TextBody = sTextBody
objMail.HTMLBody = 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**@blindsided.org> wrote in message
news:O6**************@TK2MSFTNGP12.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.com, I found a sample script using CDOSYS.
In the script, the following works just fine

Set objMail = Server.CreateObject("CDO.Message")
objMail.From = sFrom
objMail.To = sTo
objMail.Subject= sSubject
objMail.TextBody = sTextBody
objMail.HTMLBody = 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
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...
29
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...
7
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...
8
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...
4
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...
16
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....
9
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...
2
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...
5
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"...
7
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.