INFO: What is the Difference Between CDO 1.2 and CDONTS?

This article was previously published under Q177850
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Collaboration Data Objects (CDO) allows developers to build collaborativeapplications. Currently, there are two versions of CDO. CDO version 1.2 and 1.21 for Exchange and CDO version 1.2 for Microsoft Windows NT Server (NTS). This document describes each library and helps the developer determine which is best suited to their objective.

CDO version 1.2 for Exchange

CDO version 1.2 for Exchange, replaces Active Messaging 1.1. CDO 1.2 iscurrently installed when you install Exchange 5.5 server or the Outlook WebAccess component found on the Exchange 5.5 server CD. CDO 1.21 library is installed with Microsoft Outlook 98 Corporate Workgroup installation. It can also be installed by means of Microsoft Outlook 2000 custom installation. Please note that Microsoft Outlook 2000 standard installation does not install the CDO library.

For additional information about where to acquire CDO libraries, please refer to the article number below to view the article in the Microsoft Knowledge Base:
171440 INFO: Where to Acquire the Collaboration Data Objects Libraries
NOTE: If you install Exchange 5.5 or Outlook Web Access and then install Outlook 8.03, CDO 1.2 will be replaced with Active Messaging 1.1. See below under "Registering CDO 1.2" for more information.

CDO 1.2 for Exchange is based on MAPI and allows you to develop richapplications based on Exchange data. CDO 1.2 for Exchange contains two richcomponents, CDO and CDO Rendering. CDO allows you to manipulate Exchangedata and to send and receive messages while CDO Rendering allows you torender Exchange data into HTML. Outlook Web Access is an excellent exampleof an application that takes advantage of both feature sets of CDO and isavailable on the Exchange server CD. Outlook Web Access allows users toview their Exchange Inbox and other folders from a Web browser.

CDO 1.2 for Exchange allows developers to build rich collaborative applicationsusing Exchange-only features. Developers must specify or build a MAPIprofile for a user to logon. This allows the user to be fully authenticatedand increases the overall security. When using Active Server Pages (ASP),Internet Information Server (IIS) can impersonate the user allowing remoteusers to view their Exchange server information. Other key features includethe ability to filter and sort messages, schedule meeting requests and addappointments, and render messages and personal calendars into HTML.

CDO 1.2 for NTS

CDO version 1.2 for NTS, also known as CDO for NTS, is an SMTP-specificlightweight version of CDO 1.2 for Exchange. This version of CDO was designedto allow server applications to send and receive messages without requiringExchange server. CDO for NTS is installed by the following three products:
  • Exchange Server 5.5
  • Internet Information Server 4.0
  • MCIS
Applications written using CDO for NTS must run on the server computer.Unlike CDO 1.2 for Exchange, applications cannot be written to access remoteservers or to develop client applications. All of the configurationinformation such as SMTP server is gathered from the host computer. Thisconfiguration cannot be modified using the library. Since one of the threeprograms is required to use CDO for NTS, there is no standalone setupprogram.

CDO for NTS was designed to be lightweight and to take advantage ofInternet standards. To support the majority of Internet developers, a newobject is available with the CDO for NTS library, called NewMail. Thisallows a developer to send messages using as little as four lines of code.This also allows you to send rich messages using HTML and MHTML.

Applications that are developed using the CDO for NTS library on oneplatform continue to work unmodified on the other platforms. For example,applications developed using Internet Information Server (IIS) version 4.0continue to work after upgrading to Exchange 5.5.

Applications can also be upgraded to CDO 1.2 for Exchange, but some changes tothe application are required. The most notable change is the ProgId and thelogon information.


Both libraries have key benefits and learning the differences between eachlibrary helps you to determine which library to use.
                                       CDO 1.2 for Exchange   CDO for NTS                                       ----------------   -----------   Installed with Outlook 8.03               No              No   Installed with Outlook 98                 Yes             No   Installed with Exchange 5.5               Yes             Yes   Installed with IIS 4.0                    No              Yes   Installed with MCIS                       No              Yes   Callable from ASP                         Yes             Yes   MAPI based with support for profiles      Yes             No   Authenticated users and higher security   Yes             No   Access multiple remote Exchange servers   Yes             No   Access personal calendar information and   other Exchange only features like   Out of Office, filtering and sorting      Yes             No   Render messages and calendars into HTML   Yes             No   Compatible with Active Messaging 1.1   Applications                              Yes             No*   NewMail Object allowing mail to be sent   with four lines of code                   No              Yes   HTML and MHTML support for messages with   rich text and graphics                    No              Yes   Native SMTP support                       No              Yes   Compatible with IIS 4.0, Exchange 5.5   and MCIS                                  No              Yes				
*Some modifications to Active Messaging applications may be required towork with CDO for NTS and some features may not be available.

Recommended Usage

CDO 1.2 for Exchange:
  • Requires Authenticated user support
  • Rendering Exchange Data
  • Accessing personal calendar store
  • Accessing multiple remote Exchange servers
  • Accessing mail from remote sites
  • Server-based custom mail agents
  • Automatic load balancing of outgoing mail
  • Upgrading existing Active Messaging application
  • Developing client applications
  • Developing server applications
  • Filtering and Sorting messages
  • Support for multiple providers
  • Developing three tier Web-based mail applications
CDO for NTS:
  • Requires HTML or MHTML Support
  • Heavy outgoing mail processing
  • Sending unauthenticated mail from Web sites
  • Server-based replication
  • Server mail-based notification
  • Server-based custom mail agents
  • Developing server applications

Registering CDO 1.2

If Outlook 8.03 or previous is installed after CDO 1.2 is installed, CDOwill be replaced with Active Messaging. This can be corrected by re-registering the Cdo.dll using the Regsvr32.exe program. Here's an example:
  1. Select Run from the Windows Start menu.
  2. Enter the following command:
       REGSVR32 CDO.DLL						
    A dialog box should appear indicating the .dll file has been registered successfully.
The CDO 1.2 Help File includes documentation on CDO 1.2 for Exchange and CDOfor NTS.

For additional information about CDO, click the article number below to view the article in the Microsoft Knowledge Base:
200018 INFO: Differences Between CDO, Simple MAPI, and Extended MAPI

Αναγνωριστικό άρθρου: 177850 - Τελευταία αναθεώρηση: 03/21/2005 17:40:11 - Αναθεώρηση: 3.1

Microsoft Collaboration Data Objects 1.21, Microsoft Collaboration Data Objects 1.2

  • kbinfo KB177850