Skip to content
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

Retrying PLAIN authentication after AUTHENTICATE failed for outlook.com and hotmail.com accounts #726

Open
adrianbecker013 opened this issue Oct 3, 2024 · 2 comments

Comments

@adrianbecker013
Copy link

adrianbecker013 commented Oct 3, 2024

Hello,

Hope you are doing well!

I am trying to access my outlook.com/hotmail.com account via IMAP using the following PHP code:

$mailbox = new PhpImap\Mailbox(  
    '{outlook.office365.com:993/imap/ssl}', 
    xxx Email address is removed for privacy xxx',
    'xxxxxxx', 
    __DIR__, 
    'US-ASCII'
);

$folder = $mailbox->getMailboxes('*');
print_r($folder);exit;

However, I am encountering the following error:
IMAP connection error: ["Retrying PLAIN authentication after AUTHENTICATE failed.","Retrying PLAIN authentication after AUTHENTICATE failed.","Can not authenticate to IMAP server: AUTHENTICATE failed."]

I have already enabled IMAP and generated an app-specific password, which I am using in this code. Could you please let me know if I’m missing something or if there's anything else I should check?

Thanks in advance for your help.

@luoluolzb
Copy link

I had the same problem with 10-01. outlook Email

@adrianbecker013
Copy link
Author

@luoluolzb Has the issue been resolved? If so, could you please share the steps you took to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants