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

CDONTS and Windows Server 2003

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
8 3930
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
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
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
> 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
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
> 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
Also, please fix your system clock.

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #8
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: hugh Welford | last post by:
Hi...I am currently trying to have the CDONTS facility activated by my web-host (it has previously worked very well with another host, and is crucial to the site). I have received the following...
10
by: Seeker | last post by:
Hi! I have to do some developing and I'm trying to configure my server to mimic the operation of our production server. The issue I'm having is that I'm trying to use CDONTS to send an email...
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...
4
by: CK | last post by:
Hi all, I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the...
12
by: tshad | last post by:
I am trying to run a test sending mail using CDONTS on my W2K3 machine. It works fine running from my WXP Pro, but I don't recieve the mail if run the W2K3 machine. Both machines have IIS...
3
by: Paul | last post by:
I am using the CDONTS.NewMail object to send e-mail programmatically. We upgraded our IIS server from NT to Windows 2003 Server. Now it does not appear that the CDONTS object is available on...
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...
1
by: Chris Thunell | last post by:
I am in the process of moving all my web applications from a windows 2000 server (IIS) to a windows 2003 server (IIS). I have apps written in VS6, .net and .net2002 but i am having problems with...
12
by: Jeff | last post by:
I have a dedicated windows server on BlueGenesis. I'd like to send an email using ASP, but I'm getting this error message: Microsoft VBScript runtime error '800a01ad' ActiveX component...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.