Ahmet Sarı
Ahmet Sarı

Reputation: 36

Reading emails with MAPI in PHP?

As you know Microsoft Exchange Server uses a proprietary protocol called MAPI. Is that possible to read emails from the Ms exchange with that protocol in PHP. I found an extension PHP-MAPI. But i guess it is only for Zarafa server or something like that. Correct me if i am wrong.

Upvotes: 1

Views: 2741

Answers (2)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66306

Extended MAPI can only be used from C++ or Delphi.
You can use Redemption (I am its author): it is an Extended MAPI wrapper usable from any language that supports IDispatch based COM objects). Keep in mind however that the MAPI system must be installed (which means Outlook must be installed).
In case of Redemption, you probably want RDOSession.LogonHostedExchangeMailbox (it creates a one-off profile that points to the specified mailbox using online mode).

Upvotes: 1

BastianW
BastianW

Reputation: 2658

Every Microsoft environment offered the "Microsoft Exchange Webservices" (EWS) which you can use in PHP in order to perform a wide range of options. So if I would be you I would start looking into EWS.

Here are some starting points:

A more detailed PHP specified answer can be found here:

Upvotes: 0

Related Questions