Forum Discussion
Sani-Asnain
Apr 19, 2023Copper Contributor
Bad User is Authenticated But Not Connected
Hi Everybody, We are using PHP-IMAP to connect to Microsoft 365 outlook mail box using oAuth2.0. Here is out sample code. $cm = new ClientManager($options = ["op...
Kidd_Ip
Apr 21, 2023MVP
Please make sure IMAP for the user account as well as security defaults under your tenant
Sani-Asnain
Apr 26, 2023Copper Contributor
Thank you for your response, Yes IMAP is already enabled and for the rest I have followed the following link
https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth
https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth