I'd try asking for help in dedicated forums here.
https://community.oracle.com/tech/developers/categories/javamail
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
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 facing issue while try to access the microsoft mailbox using the access token and oAuth.
I am using the javamail to connect, but getting the below error
DEBUG IMAP: trying to connect to host "outlook.office365.com", port 993, isSSL true
* OK The Microsoft Exchange IMAP4 service is ready. [**********************************]
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
A0 OK CAPABILITY completed.
DEBUG IMAP: AUTH: PLAIN
DEBUG IMAP: AUTH: XOAUTH2
DEBUG IMAP: protocolConnect login, host=outlook.office365.com, user=coolmani9717@harsh.com .com, password=<non-null>
A1 AUTHENTICATE XOAUTH2 dXNlcj1jb29sbWFuaTk3MT***************
A1 NO AUTHENTICATE failed.
Error1 AUTHENTICATE failed.
Error1 AUTHENTICATE failed.
I'd try asking for help in dedicated forums here.
https://community.oracle.com/tech/developers/categories/javamail
--please don't forget to upvote
and Accept as answer
if the reply is helpful--