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.
CodePudding user response:
Use the Microsoft Graph API. You may find the Getting Started with Microsoft Graph and Mail API video on YouTube helpful.