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



Solution 1:[1]

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

Solution 2:[2]

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:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 BastianW