Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   CDONTS (http://www.velocityreviews.com/forums/t797994-cdonts.html)

Mac Davis 02-21-2005 02:43 PM

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.



Mark Schupp 02-21-2005 04:53 PM

Re: CDONTS
 
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" <news@blindsided.org> wrote in message
news:O6fwyOCGFHA.1260@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.
>




Jeff Cochran 02-21-2005 05:10 PM

Re: CDONTS
 
On Mon, 21 Feb 2005 09:43:19 -0500, "Mac Davis" <news@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

Mac Davis 02-22-2005 02:12 AM

Re: CDONTS
 
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" <news@blindsided.org> wrote in message
news:O6fwyOCGFHA.1260@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.
>




Fabio Ucosich 02-25-2005 08:20 AM

Re: CDONTS
 
Use parentesis on the method send:

objMail.send()

Hi, Fabio

"Mac Davis" <news@blindsided.org> wrote in message
news:O6fwyOCGFHA.1260@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.
>
>





All times are GMT. The time now is 05:23 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57