Rebex Graph

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

Download 30-day free trial Buy from $199
More .NET libraries
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 unread messages in Inbox and show their headers
    var page = new GraphPageView(0, 10);
    var unread = GraphMessageSearchParameter.IsRead(false);
    var list = client.Search(GraphFolderId.Inbox, page, unread);

    foreach (var info in list)
    {
        Console.WriteLine("{0}: {1}", info.ReceivedDate, 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.

Also includes SMTP library for sending e-mails using SMTP servers.

Why Rebex Graph?

Easy-to-use API

Connect, log in, search for new messages, download messages, disconnect. Send emails, work 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.

Suitable for .NET on Windows, Mac, Linux, iOS and Android.

Documentation

Documentation with C# code snippets.

Platforms

.NET

9, 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

Legacy platforms

(not included in standard product packages - see more)

 

.NET Compact Framework

3.5/3.9

.NET Framework

2.0-3.5