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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
esariConnect With a Mentor Commented:
uses Mapi; // windows mapi DLL using

ippMapiMessage : Send To + CC + Message

MAPISendMail(0,0,lppMapiMessage,0,0);
0
 
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
All Courses

From novice to tech pro — start learning today.