Microsoft Exchange Online
A Microsoft email and calendaring hosted service.
1,836 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
I am encountering a problem while performing mail operations such as move message or retrieve message for more than 20 requests. error which i am receiving is: "User is connected but not authenticated.".
followed all instructions mentioned at :
I tried with both imap host (outlook.office365.com, imap-legacy.office365.com) but that didn't help.
below IMAP settings used:
please can someone help here, how to use imap with oauth2 using javax mail api.
prop.setProperty("mail.store.protocol", imaps);
prop.put("mail.imap.ssl.enable", "true");
prop.put("mail.imaps.sasl.enable", "true");
prop.put("mail.imaps.sasl.mechanisms", "XOAUTH2");
prop.put("mail.imap.auth.login.disable", "true");
prop.put("mail.imap.auth.plain.disable", "true");
prop.put("mail.imap.host", outlook.office365.com);
prop.put("mail.imap.port", "993");