MATLAB: How to retrieve emails from Microsoft Exchange

authorizationexchangemailMATLABmicrosoftoauthoutlook

How do I retrieve emails from Microsoft Exchange and not just my local machine?

Best Answer

To get emails from Microsoft Exchange you will need to authenticate using OAuth. MATLAB does not directly support OAuth authentication; instead you will need to use the Outlook REST API with MATLAB's webread and webwrite commands.
Documentation on the REST API is available here:
You can use the following examples to see how to do OAuth with MATLAB's HTTP interface, and webread/webwrite:
Related Question