

It works for our developer license Office 365 organization but for the one that is bought through GoDaddy (on ) it fails to authenticate SMTP (IMAP works fine). The app is registered for both personal users and Office 365 organizations in Azure (that is why common is used as a tenant in auth URLs). In the Azure portal, it is added in Permissions API under Graph API (since it is not available under Exchange anymore). Enter your Name, email Address, Password, and a short Description for your email. Under Compose messages, in the Compose messages in this format list, select HTML. Scope for SMTP used: (as documented in the guide from Microsoft). Changing your default email format can prevent winmail.dat attachments from appearing on your outgoing email. When setting up a new Office 365 tenancy or migrating from an on-premises or hosted Email system to Office 365, one last step will be to add all the necessary DNS records to your DNS zone file, and then make the appropriate changes to your on-premises Active Directory and Exchange environments. S: 535 5.7.3 Authentication unsuccessful What is Setup Office 365 Email In Outlook Godaddy. S: 220 Microsoft ESMTP MAIL Service ready at Fri, 12:24:06 +0000 Following this guide on OAuth2 support for IMAP/SMTP, I was able to retrieve the access token and authenticate IMAP and SMTP fine, but for some Office 365 accounts like the ones that were bought from GoDaddy, AUTH XOAUTH2 command returns Authentication unsuccessful as shown in logs below.
