ActiveX component can't create object: 'CDONTS.NewMail'

ActiveX component can't create object: 'CDONTS.NewMail'
Sending mail in ASP is one of the most basic tasks to accomplish. What happens when you get the error ActiveX component can't create object: 'CDONTS.NewMail'?

If ASP can't create a CDONTS object, it probably means that you don't have CDONTS installed in the first place. This would depend on what OS your ASP server is running.

As you might imagine, CDONTS is a part of the Windows NT operating system. This still works on Windows 2000 Servers as well - but if you're running a Windows XP system, you might not have the old NT software on it. Microsoft gave up on back-supporting ancient NT code.

You can always of course work with the cdonts.dll file from 2000 or NT and get it running on your new server. This is the easiest solution if you have a lot of code completed already. However, if you are coding fresh for XP, you might want to look into using the new CDO object instead.

Microsoft's Page on CDO Coding

Sending Mail with ASP

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.

Related Articles
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map

Content copyright © 2022 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.