Connect to Exchange Server 4 from Delphi

Does anyone know how to connect to Exchange Server 4 over a LAN from Delphi? I want to send mail to recipients from Exchange Server!
Paul SinnemaAsked:
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.

wmckieCommented:
Paul

Are you intending to run your app on a client PC or on the server hosting the Exchange service?

If the app will be on a client PC then a possible solution could be to install the MS Outlook client, import the type library and thus be able to use the MS Outlook automation server to send email.

Another solution could be to use CDO (Collaboration data object) this is installed as part of of MS Outlook. Its lower level and is slightly harder to use. Also you attempt using MAPI calls.

Hope this helps - Walter McKie

0
Paul SinnemaAuthor Commented:
Walter,

Is there an implementation for the MAPI available in Delphi? I can't find it.

Paul.
0
wmckieCommented:
Paul

There is for simple MAPI (in my D4 system there is a mapi.dcu in \Lib and the source is in Source\Win\Rtl\mapi.pas) Borland don't have an implementation of extended MAPI but there is a partial one on the web by Alexander Staubo.

Cheers - Walter

0
esariCommented:
uses Mapi; // windows mapi DLL using

ippMapiMessage : Send To + CC + Message

MAPISendMail(0,0,lppMapiMessage,0,0);
0

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

From novice to tech pro — start learning today.