Referred https://msdn.microsoft.com/en-us/office/office365/api/use-outlook-rest-api. Still I couldn\'t understand the AD, Outlook and windows live.
I got refresh to
See latest Microsoft announcement on April 30, 2020.
Announcing OAuth 2.0 support for IMAP, SMTP client protocols in Exchange Online
Today, we’re announcing the availability of OAuth 2.0 authentication for IMAP, SMTP AUTH protocols to Exchange Online mailboxes.