Significant-Gravitas / Auto-GPT-Plugins

Plugins for Auto-GPT
MIT License
3.9k stars 564 forks source link

Office 365 email authentication issues #159

Open Koviak opened 1 year ago

Koviak commented 1 year ago

Has anyone managed to get an Office 365 email to work? I keep getting the "authentication error". My Gmail account works fine. Could it be related to the encryption methods?

Server name: outlook.office365.com Port: 993 Encryption method: TLS

Server name: smtp.office365.com Port: 587 Encryption method: STARTTLS

sdelgadoc commented 1 year ago

You need go through the Microsoft Graph API to access Office 365 email to work. The current email plugin only supports standard IMAP/SMTP email protocols. I have it on my list to work on this, but could use help. Let me know if you're interested in working on it.

Below is an introduction to the Graph API.

Outlook mail API overview https://learn.microsoft.com/en-us/graph/outlook-mail-concept-overview

And here is a great library that does a lot of the heavy lifting to communicate with the Microsoft Graph API.

O365 - Microsoft Graph and Office 365 API made easy https://github.com/O365/python-o365

Koviak commented 1 year ago

I will work on it. 👍

victor-zavala commented 1 year ago

Hi! I'll fix it creating an app password on the account just like in google. Works for sending emails but not reading emails yet. I'm working on it.