Rebex Graph

.NET client library for MS Graph API (Exchange Online)

Download 30-day free trial Buy from $199
More .NET libraries
// create Graph client instance
using (var client = new Rebex.Net.GraphClient())
{
    // connect and authenticate to Exchange Online (Microsoft 365) server
    client.Connect();
    client.Login(token);

    // get list of top 10 new messages in 'Inbox'
    var page = new GraphPageView(0, 10);
    var unread = GraphMessageSearchParameter.IsRead(false);
    var list = client.Search(GraphFolderId.Inbox, page, unread);

    // print subjects of those messages
    foreach (var info in list)
    {
        Console.WriteLine(info.Subject);
    }
}
Show me more code...
.NET library for accessing Microsoft 365 (Exchange Online) using Microsoft Graph API. Makes it possible to send, receive, list and search e-mail messages. Supports TLS 1.3/1.2 and S/MIME.

Why Rebex Graph?

Easy-to-use API

Connect, log in, search for new messages, download messages, disconnect. Send email with attachments. It's easy to start developing with our library. Simple code for common use cases.

MIME and S/MIME API

API for MIME and S/MIME messages is included. Supports signing and signature validation. Based on X.509 certificates and Cryptographic Message Syntax (PKCS #7).

PC and mobile

Supports wide range of .NET platforms. on .NET on Windows, macOS, Linux, iOS and Android.

Documentation

Documentation with C# code snippets.

Platforms

.NET

8, 7, 6, 5

.NET Framework

3.5 SP1, 4.0-4.8.1

.NET Core

3.1

Mono

6.0 or higher

Xamarin.iOS

13.10 or later

Xamarin.Android

10.1 or later

Learn more about supported standards and platforms.