Posted on 2004-11-10
Last Modified: 2010-04-04
hi all...
can anyone enlighten me on how to use CDONTS.DLL in delphi???

I was trying to import CDONTS.DLL for sending emails.
what i did was:
i added CDONTS.DLL into the type library which is "Microsoft CDO for NTS 1.2 Library"

then i tried "Project/import type library" to import this dll
on import type library window, it shows the dll has 2 classes which are "TNewMail", "TSession"
and cilcked "create unit"

the error message was "A class named 'TSession' is already installed.
Question by:mudskipperw
    LVL 14

    Accepted Solution

    TSession is a name of the component that is in your Database tab. To avoid this, you can either:

    1. Unload the BDE package from your Delphi project before loading/installing the CDO package.
    2. Manually modify the source for your CDO type library and change TSession to something else, TCDOSession, for example.

    LVL 5

    Expert Comment

    Watching only


    Just curious, I understood that you can only use CDonts with NT/WIN2000 - what OS are you using?

    LVL 17

    Expert Comment

    by:Wim ten Brink
    Either don't let the import wizard NOT create any components (thus uncheck the checkbox at the bottom) or use the wizard, search for TSession and rename it in the list. (E.g. by adding an _ at the end of the name.)
    LVL 5

    Expert Comment


    Still don't know what OS you are using, if its not WIN2000 or NT or XPPro, I dont think it can work.

    Take a look at an E-Mail component for $17.95.....

    Why beat yourself up?

    Just an idea....


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now