Sheena Roy
Sheena Roy

Reputation: 45

Reading emails from Exchange online in c#.net using Office 365 API

I am trying to read emails from Exchange online through a Office 365 API.with using my username and password for authentication.

Is it possible to access the O365 api? (only using user credentials)

How can I do that? Anyone can help is appreciated.

Upvotes: 1

Views: 4334

Answers (1)

Sébastien Pertus
Sébastien Pertus

Reputation: 715

If your exchange online is part of Office 365, you should definitively take a look here : http://dev.office.com

You will find many tutorials to get access to your mails. Take a look here : http://dev.office.com/getting-started/office365apis

It uses the Microsoft Graph to query your mailbox and retrives messages :

https://graph.microsoft.com/v1.0/me/mailFolders/Inbox/messages 

The authentication process is provided byt Azure Active Directory, through ADAL SDK.

In Visual Studio, you can create easily an application, and then call the submenu 'Add connected services' and you're done !

Upvotes: 1

Related Questions