Microsoft mailboxes using Microsoft Graph - Python

Hello,
Can you please provide an example of how I can connect to Microsoft mailboxes (Hotmail, Outlook365) using Microsoft Graph and Aspose.Email for Python via .NET?
The idea is to obtain the access token through a browser and then, once connected, export the messages to MSG or EML format.

Thank you for any help you can provide.

Hello @slad,

Unfortunately, the following features are not implemented in Aspose.Email for Python via .NET:

  • Microsoft Graph REST API
  • Exchange API

Sorry for the inconvenience.

Can I connect via IMAP after obtaining the access token?

Yes, you can connect via IMAP:

import aspose.email as ae

client = ae.clients.imap.ImapClient(host, port, username, token_provider)

client.select_folder("Inbox")