-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 401 - Unauthorized when connecting to outlook.office365.com #8
Comments
Did anything change recently? Did you update the app? Was there an upgrade on your mail infrastructure? |
I didn't change anything from my end. But I am suspecting that Microsoft did some upgrade of the authentication method on the office365 server. It will help to see if anyone using this library is also connecting to office365 and it's working for them. |
Here is what I found: Apparently, username and password was removed this month, October 2022. Look at similar issue discussion on jamesiaremes php-ews repo. |
I tested a live account with this fix. Can you try if it works for you? |
Oh! |
If you have your access token, you can try this. |
Get access token: jamesiarmes/php-ews#212 (comment) |
This was working properly up until this month October.
When it tries to connect to outlook.office365.com, I get the following error:
debug.INFO: array (
'function' => 'processEmailTickets: ews->mail->unread',
'message' => 'SOAP client returned status of 401.',
)
My username and password are correct as I have tested this on a web browser.
The text was updated successfully, but these errors were encountered: