Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: This imapX library is a free library or paid ??

$
0
0
Hi sauravAnand,

first of all, you can always connect to an IMAP server of your choice (including GMail, Yahoo, AOL) by supplying the server address and the login and password. Just like you'd do in Outlook or any other mail software with IMAP support.

If you want to use OAuth2 to access your mailbox on GMail, start by registering your application with Google: https://console.developers.google.com/. You will receive an application id and secret.

When you got your application data, take a look at the sample application provided for ImapX: https://imapx.codeplex.com/releases/view/121634. It has all the code required to use OAuth2 to authenticate on GMail. (e.g GoogleOAuth2Provider)

The authToken parameter of the OAuth2Credentials constructor stands for the access token you have received. Please make sure that you request the right scope when authenticating the user: https://www.googleapis.com/auth/userinfo.email as well as https://mail.google.com/ are required.

Greets,

Pavel

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>