Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29755

Connect to outlook Office 365 IMAP using OAUTH2

$
0
0

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 token and access token from https://login.microsoftonline.com/common/oauth2/v2.0/authorizehttps://login.microsoftonline.com/common/oauth2/v2.0/token

and the scope

openid email profile offline_access https://outlook.office.com/mail.sendhttps://outlook.office.com/mail.readwrite

Still i m getting error while connect imap using the access token.

imap.authenticate('XOAUTH2', 'xxxxxxx', access_token)Net::IMAP::NoResponseError: AUTHENTICATE failed.

Viewing all articles
Browse latest Browse all 29755

Trending Articles