473,670 Members | 2,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONTS Failure

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.CreateOb ject("CDONTS.Ne wMail")

ERROR 1:

Server object error 'ASP 0177 : 800401f3'
Server.CreateOb ject Failed

/mlcnet/library/cls_DataReports .asp, line 22

800401f3

Jul 22 '05 #1
9 6269
CDONTS doesn't exist on Server 2003. It only existed in 2000 for legacy
support purposes. Use CDO.
http://www.aspfaq.com/show.asp?id=2026

Ray at home

"scott" <sb*****@milesl umber.com> wrote in message
news:en******** *****@TK2MSFTNG P15.phx.gbl...
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.CreateOb ject("CDONTS.Ne wMail")

ERROR 1:

Server object error 'ASP 0177 : 800401f3'
Server.CreateOb ject Failed

/mlcnet/library/cls_DataReports .asp, line 22

800401f3

Jul 22 '05 #2
CDONTS is deprecated and not included in Windows 2003. use CDO.Message
instead (see www.aspfaq.com if you need sample code)

--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no rights.

"scott" <sb*****@milesl umber.com> wrote in message
news:en******** *****@TK2MSFTNG P15.phx.gbl...
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.CreateOb ject("CDONTS.Ne wMail")

ERROR 1:

Server object error 'ASP 0177 : 800401f3'
Server.CreateOb ject Failed

/mlcnet/library/cls_DataReports .asp, line 22

800401f3

Jul 22 '05 #3
yup, CDOSYS is the ticket

http://www.aspfaq.com/show.asp?id=2026
http://www.powerasp.com/content/new/...ail_cdosys.asp
http://www.powerasp.com/content/new/...ing_cdosys.asp

"scott" <sb*****@milesl umber.com> wrote in message
news:en******** *****@TK2MSFTNG P15.phx.gbl...
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.CreateOb ject("CDONTS.Ne wMail")

ERROR 1:

Server object error 'ASP 0177 : 800401f3'
Server.CreateOb ject Failed

/mlcnet/library/cls_DataReports .asp, line 22

800401f3

Jul 22 '05 #4
Actually the others are right about CDONTS being deprecated. I still managed
to use it on my WinXP though, by simply copying the cdonts.dll (or similar)
file into my System32 directory.
"scott" <sb*****@milesl umber.com> wrote in message
news:en******** *****@TK2MSFTNG P15.phx.gbl...
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.CreateOb ject("CDONTS.Ne wMail")

ERROR 1:

Server object error 'ASP 0177 : 800401f3'
Server.CreateOb ject Failed

/mlcnet/library/cls_DataReports .asp, line 22

800401f3

Jul 22 '05 #5
thanks.

"Agoston Bejo" <gu***@yahoo.co m> wrote in message
news:uZ******** ******@TK2MSFTN GP10.phx.gbl...
Actually the others are right about CDONTS being deprecated. I still
managed
to use it on my WinXP though, by simply copying the cdonts.dll (or
similar)
file into my System32 directory.
"scott" <sb*****@milesl umber.com> wrote in message
news:en******** *****@TK2MSFTNG P15.phx.gbl...
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.CreateOb ject("CDONTS.Ne wMail")

ERROR 1:

Server object error 'ASP 0177 : 800401f3'
Server.CreateOb ject Failed

/mlcnet/library/cls_DataReports .asp, line 22

800401f3


Jul 22 '05 #6
I have several servers, some 200, and some 2003, if you wish to use CDONTS
instead of CDO you must register the CDONTS.DLL file in component services.

This will work fine.

Although there are many developers that say use CDO instead, I have chosen
to keep the legacy DLL in place for backwards-compatibility.

Hope this helps.
"Agoston Bejo" <gu***@yahoo.co m> wrote in message
news:uZ******** ******@TK2MSFTN GP10.phx.gbl...
Actually the others are right about CDONTS being deprecated. I still
managed
to use it on my WinXP though, by simply copying the cdonts.dll (or
similar)
file into my System32 directory.
"scott" <sb*****@milesl umber.com> wrote in message
news:en******** *****@TK2MSFTNG P15.phx.gbl...
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.CreateOb ject("CDONTS.Ne wMail")

ERROR 1:

Server object error 'ASP 0177 : 800401f3'
Server.CreateOb ject Failed

/mlcnet/library/cls_DataReports .asp, line 22

800401f3


Jul 22 '05 #7
On Thu, 21 Apr 2005 08:14:05 +0100, "Adam Short" <ad**@phuture-uk.net>
wrote:
I have several servers, some 200, and some 2003, if you wish to use CDONTS
instead of CDO you must register the CDONTS.DLL file in component services.


You also have to have a copy of the DLL, properly licensed of course.
All to use deprecated technology with more limited options and
automatic incompatibility in future OS releases.

Jeff
Jul 22 '05 #8
>I have several servers, some 200, and some 2003, if you wish to use CDONTS
instead of CDO you must register the CDONTS.DLL file in component services.

This will work fine.

Although there are many developers that say use CDO instead, I have chosen
to keep the legacy DLL in place for backwards-compatibility.


I'm not convinced this is a good solution. If you move to a different host,
you have to do the same CDONTS.dll registration. If you add a new server,
same thing. When you migrate to the next version of Windows, same thing
(assuming it is still supported). Plus, I remember reading somewhere that
the act either violates your license agreement, or invalidates product
support, or both. Not that they will ever come after you for it or suddenly
deny you support, but some shops do need to keep strict adherence in mind.

I can't imagine it would take all that long to change existing CDONTS code
to use CDO.Message. Spend the time now, have a common SendMail() function
in an include file, then the biggest problem is changing your mailing code
in one place instead of throughout your application.

A
Jul 22 '05 #9
I completely agree with you Aaron, you should try to keep up with the latest
supported versions of software. But unfortunately it is sometimes quicker
to install a DLL, take the risk of loosing support, than to re-write
hundreds of websites that currently use the old method.

Luckily these site will eventually by re-designed/re-developed and I'm sure
developers will take that opportunity to upgrade. We already have, and do
use CDO as opposed to CDONTS, I was merely letting Scott know it could be
done, how to do it, and for whatever reason. I didn't recommend he used
CDONTS instead of CDO!

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:em******** ******@TK2MSFTN GP15.phx.gbl...
I have several servers, some 200, and some 2003, if you wish to use
CDONTS instead of CDO you must register the CDONTS.DLL file in component
services.

This will work fine.

Although there are many developers that say use CDO instead, I have
chosen to keep the legacy DLL in place for backwards-compatibility.


I'm not convinced this is a good solution. If you move to a different
host, you have to do the same CDONTS.dll registration. If you add a new
server, same thing. When you migrate to the next version of Windows, same
thing (assuming it is still supported). Plus, I remember reading
somewhere that the act either violates your license agreement, or
invalidates product support, or both. Not that they will ever come after
you for it or suddenly deny you support, but some shops do need to keep
strict adherence in mind.

I can't imagine it would take all that long to change existing CDONTS code
to use CDO.Message. Spend the time now, have a common SendMail() function
in an include file, then the biggest problem is changing your mailing code
in one place instead of throughout your application.

A

Jul 22 '05 #10

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

Similar topics

1
4700
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
3533
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?
8
3948
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
0
1618
by: haode | last post by:
to some mail accounts, I can't send mails to them? Whoes fault is this? the part of code is as follows. <% set mail=server.CreateObject("cdonts.newmail") mail.To=aaa@aaa.com mail.From="system@aaa.com" mail.Subject=today & " New Messages"
16
3163
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:
3
5899
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 the 2003 Server? Is this correct? If so, how does one send e-mail programmatically on 2003 Server using
7
2878
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.
2
2617
by: Hughesie11 | last post by:
Im trying to post from a form to send an email, im using CDONTS ( I have to as it will be running on NT4), the object appears to get created fine, however the email is not sending, its generates 3 files in the C:\Inetpub\mailroot\Badmail directory they are .BDR, .BDP & .BAD files, here is the text of the .bad: From: postmaster@SERVERMNAME To: myemail@domain.com Date: Fri, 14 Dec 2007 13:55:07 +0000 MIME-Version: 1.0 Content-Type:...
15
547
by: Earl Partridge | last post by:
If there's a newgroup for this subject, please point me to it... Is it possible to set the font size of the body of the text? Earl
0
8471
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
8388
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8907
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
7423
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...
0
4215
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
4396
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2804
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
2046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1799
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.