By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,190 Members | 2,204 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,190 IT Pros & Developers. It's quick & easy.

CDONTS and Windows Server 2003

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
http://aspfaq.com/show.asp?id=2026

You can register the CDONTS DLL manually but consider migrating your code to
CDO.

Alan
"Boris" <Bo***@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
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

Jul 19 '05 #2

P: n/a
CDO is generally used instead of CDONTS on IIS 5 and after (actually the
SMTP service within IIS) which is generally on servers after Win NT4
(although I think CDONTS is generally still supported too).

Here are changes I made to convert CDONTS stuff to be CDO stuff instead:

o Change objCDONTS to be called objCDO (actually this is just a cosmetic
change)

o This:
Set objCDONTS = Server.CreateObject("CDONTS.NewMail")

Changed to this instead:
Set objCDO = Server.CreateObject("CDO.Message")

o This:
objCDONTS.Body = strEmailBody

Changed to this instead:
objCDO.TextBody = strEmailBody

o This removed:
' Importance.
' (0=Low, 1=Normal, 2=High)
objCDONTS.Importance = 1

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

P: n/a
Bullschmidt wrote:

Here are changes I made to convert CDONTS stuff to be CDO stuff
instead...


When we ported to CDO, this was all we had to do -- on some of our servers.
As we set about remediating scripts, we discovered that this simply did not
work on all of our servers. We needed to explicitly specify the
configuration on those servers, even when using the pickup directory.
Example:

var Msg = Server.CreateObject("CDO.Message"),
Config = Server.CreateObject("CDO.Configuration")

Config.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPickup
Config.Fields.Item(cdoSMTPServerPickupDirectory) = cdoPickupDirectory
Config.Fields.Update()
Msg.Configuration = Config

We never took the time to track down the differences between servers that
was causing this, instead opting for the explicit declaration, which leaves
no ambiguity.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #4

P: n/a
> Config.Fields.Item(cdoSMTPServerPickupDirectory) = cdoPickupDirectory

I might have to follow this up myself :) I've just been through the process
of migrating an app from CDONTS to CDO and noticed a 'must specify location
of the Pickup directory' error when running the new email component in local
mode on one of my XP development workstations. Same component works fine on
my Win2000 workstations and staging servers. Thanks for that.

Alan
"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:un**************@TK2MSFTNGP12.phx.gbl...
Bullschmidt wrote:

Here are changes I made to convert CDONTS stuff to be CDO stuff
instead...
When we ported to CDO, this was all we had to do -- on some of our

servers. As we set about remediating scripts, we discovered that this simply did not work on all of our servers. We needed to explicitly specify the
configuration on those servers, even when using the pickup directory.
Example:

var Msg = Server.CreateObject("CDO.Message"),
Config = Server.CreateObject("CDO.Configuration")

Config.Fields.Item(cdoSendUsingMethod) = cdoSendUsingPickup
Config.Fields.Item(cdoSMTPServerPickupDirectory) = cdoPickupDirectory
Config.Fields.Update()
Msg.Configuration = Config

We never took the time to track down the differences between servers that
was causing this, instead opting for the explicit declaration, which leaves no ambiguity.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.

Jul 19 '05 #5

P: n/a
Well
I too got same problem .
I found CDONT.Dlll file or same names like that CDons.dll . YOu have to find
those files in ur Windows System then simple put that in ur System32 and
Register it i am sure your CDONTs mail ll start for sure.

Here the that how to register cdonts.dll
regsvr32 Cdonts.dll
Type this command in run and you ll be Out of problemf or sure ;)

You may send the CDONTS mail now !

Kaustubh

"Boris" <Bo***@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...
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

Jul 19 '05 #6

P: n/a
> I found CDONT.Dlll file or same names like that CDons.dll . YOu have to
find
those files in ur Windows System then simple put that in ur System32 and
Register it i am sure your CDONTs mail ll start for sure.


NO, NO, NO! Did you stop to think that maybe CDONTS is not included in
Windows 2003 for a reason? What is wrong with using CDO.Message instead?

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #7

P: n/a
Also, please fix your system clock.

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #8

P: n/a
Stop it! CDONTS has been deprecated and removed from current versions
on purpose. Use CDO. That's what it exists for.

Jeff
On Mon, 5 Jul 2004 23:03:28 -0700, "Kaustubh Gujar"
<ch***********@yahoo.com> wrote:
Well
I too got same problem .
I found CDONT.Dlll file or same names like that CDons.dll . YOu have to find
those files in ur Windows System then simple put that in ur System32 and
Register it i am sure your CDONTs mail ll start for sure.

Here the that how to register cdonts.dll
regsvr32 Cdonts.dll
Type this command in run and you ll be Out of problemf or sure ;)

You may send the CDONTS mail now !

Kaustubh

"Boris" <Bo***@discussions.microsoft.com> wrote in message
news:4D**********************************@microso ft.com...
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


Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.