Antonio Costa
Antonio Costa

Reputation: 81

How to access outlook mailbox using Python

I am doing a project that makes a post request when the mailbox receives an email, the only thing that I need is access to the mailbox. The mail address is from office 365. I have already tried access using Microsoft Graph API, exchange library, and IMAP library but with no success. At the moment, I am doing the project using win32com.client library, but to use I need outlook installed on my machine. The Idea is to access my mailbox from another server. Does anyone know how can I do it? Thank you for the help.

Upvotes: 0

Views: 22484

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

Use the Microsoft Graph API. You may find the Getting Started with Microsoft Graph and Mail API video on YouTube helpful.

Upvotes: 2

Related Questions