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.
mudskipperwSystem AdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Watching only


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

Wim ten BrinkSelf-employed developerCommented:
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.)

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....

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.