Rebex.Ews
8.0.9820
Prefix Reserved
dotnet add package Rebex.Ews --version 8.0.9820
NuGet\Install-Package Rebex.Ews -Version 8.0.9820
<PackageReference Include="Rebex.Ews" Version="8.0.9820" />
<PackageVersion Include="Rebex.Ews" Version="8.0.9820" />
<PackageReference Include="Rebex.Ews" />
paket add Rebex.Ews --version 8.0.9820
#r "nuget: Rebex.Ews, 8.0.9820"
#:package Rebex.Ews@8.0.9820
#addin nuget:?package=Rebex.Ews&version=8.0.9820
#tool nuget:?package=Rebex.Ews&version=8.0.9820
Rebex EWS - The C# Exchange Web Services library for .NET
Free trial | Sample code | API reference | What's new | Pricing | Support
Rebex EWS is an EWS client library for .NET developers. It provides access to Microsoft Exchange mailboxes using Exchange Web Services (EWS) with TLS encryption. With Rebex EWS, it's simple to send, receive, list, and search email messages, manage folders, and work with attachments. For creating and manipulating email messages, use Rebex.Mail. For Exchange Online / Microsoft 365, use Rebex.Graph. For IMAP/POP3 access, use Rebex.Imap or Rebex.Pop3.
15+ years of active development. Rebex EWS has been continuously developed and maintained since 2012, with regular updates and new features.
Key features
- Message operations - list, download, upload, copy, move, delete messages; attachments; message metadata, flags, and categories
- Item operations - work with non-mail items (contacts, calendar events, tasks)
- Folder operations - list, create, rename, delete folders; well-known folder IDs
- Searching - search by sender, subject, date, flags, full text; combine criteria with AND, OR, NOT operators; paged results
- Sending e-mails - send messages directly through Exchange
- TLS support - implicit TLS mode
- Many authentication modes - password, X.509 client certificates, GSS-API, Kerberos, NTLM, single sign-on
- Async/await API - Task-based asynchronous API support
- MIME and S/MIME - sign, encrypt, and verify messages using X.509 certificates (via Rebex.Mail)
- Cryptographic algorithms including PQC - ML-KEM, ML-DSA, Ed25519, ChaCha20/Poly1305, AES/GCM, ECDH, ECDSA, RSA, and more
- FIPS 140-3 compliant mode
Getting started
Connect, authenticate and search for unread messages
// get a free trial key at https://www.rebex.net/support/trial/
Rebex.Licensing.Key = "==put-your-license-key-here==";
using (var client = new Rebex.Net.Ews())
{
// connect to Exchange server
client.Connect(hostname, SslMode.Implicit);
// authenticate
client.Login(username, password);
// get list of unread messages
var list = client.Search(
EwsFolderId.Inbox,
EwsSearchParameter.IsRead(false));
// print some info
foreach (EwsMessageInfo info in list)
{
Console.WriteLine("From: {0}", info.From);
Console.WriteLine("Subject: {0}", info.Subject);
}
// disconnect (not required, but polite)
client.Disconnect();
}
Get message list
var list = client.GetMessageList(EwsFolderId.Inbox);
foreach (EwsMessageInfo info in list)
{
Console.WriteLine("From: {0}, Subject: {1}", info.From, info.Subject);
}
Download a message
// download a message
MailMessage mail = client.GetMailMessage(messageId);
Console.WriteLine("From: {0}", mail.From);
Console.WriteLine("Subject: {0}", mail.Subject);
if (mail.Attachments.Count > 0)
Console.WriteLine("Attachments: {0}", mail.Attachments.Count);
// save mail directly to disk
client.GetMessage(messageId, @"C:\MyData\mail.eml");
Search with multiple criteria
// find messages from Joe which arrived today and have "Holiday" in subject
EwsItemCollection list = client.SearchItems(
EwsFolderId.Inbox,
EwsSearchParameter.From("joe@example.org"),
EwsSearchParameter.Arrived(DateTime.Now),
EwsSearchParameter.Subject("Holiday"));
Folder operations
// get folder info
EwsFolderInfo folder = client.GetFolderInfo(EwsFolderId.Inbox);
Console.WriteLine("Folder: {0}", folder.Name);
Console.WriteLine("Total items: {0}", folder.TotalItemCount);
// create a folder
if (!client.FolderExists(EwsFolderId.Root, "Orders"))
client.CreateFolder(EwsFolderId.Root, "Orders");
Upload a message
MailMessage mail = new MailMessage();
mail.Load(@"C:\MyData\mail.eml");
EwsItemId messageId = client.StoreMessage(EwsFolderId.Inbox, mail);
Delete a message
client.DeleteItem(itemId);
Supported platforms
- .NET 11 on Windows, Linux, macOS, Android, iOS
- .NET 10 on Windows, Linux, macOS, Android, iOS
- .NET 9 on Windows, Linux, macOS
- .NET 8 on Windows, Linux, macOS
- .NET 7 on Windows, Linux, macOS
- .NET 6 on Windows, Linux, macOS
- .NET 5 on Windows, Linux, macOS
- .NET Framework 4.0, 4.5.x, 4.6.x, 4.7.x, 4.8.x
- .NET Framework 3.5 SP1
- .NET Core 3.1 on Windows, Linux, macOS
- Xamarin.Android (10.1 and higher; via .NET Standard 2.1)
- Xamarin.iOS (13.10 and higher; via .NET Standard 2.1)
- Mono 6.0 or higher on Linux and macOS
Supported architectures: x86, x64, ARM64.
Licensing
This is a paid commercial product with a free 30-day trial.
- Trial mode: Start your free 30-day trial by generating your trial key
- Licensed mode: Buy Rebex EWS and get your full license key
When the full license key is provided, NuGet.org repository can be used to retrieve versions of Rebex components covered by your support contract.
Support
Talk to real people. No scripted or AI responses. Support is provided directly by the engineers who design and build the library.
Email us at support@rebex.net or visit rebex.net/support.
Documentation
- API reference
- Connecting
- Authentication modes
- Sending e-mails
- Message operations
- Item operations
- Folder operations
- Searching
- Advanced features
- Events
- Asynchronous operations
- Communication logging
- MIME and S/MIME
- TLS/SSL core
- X.509 certificates
- Proxies and custom sockets
- Standards and platforms
- Compatibility
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETFramework 3.5
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETFramework 4.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETFramework 4.6
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETStandard 2.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
.NETStandard 2.1
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net10.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net11.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net5.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net6.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net7.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net8.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
-
net9.0
- Rebex.Common (= 8.0.9820)
- Rebex.Mail (= 8.0.9820)
- Rebex.Networking (= 8.0.9820)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rebex.Ews:
| Package | Downloads |
|---|---|
|
Rebex.TotalPack
Rebex Total Pack is a metapackage that includes all Rebex libraries such as Rebex SFTP, Rebex FTP, Rebex SSH Shell, and more. See https://www.rebex.net/total-pack/ for a complete list. This is a paid commercial product with a free 30-day trial: - Trial mode: Start your free 30-day trial by generating your trial key at https://rebex.net/support/trial-key.aspx - Licensed mode: Purchase the product at https://rebex.net/shop/ and get your full license key at https://rebex.net/protected/nuget When the full license key is provided, NuGet.org repository can be used to retrieve versions of Rebex components covered by your support contract. Supported platforms: - .NET 11 on Windows, Linux, macOS, Android, iOS - .NET 10 on Windows, Linux, macOS, Android, iOS - .NET 9 on Windows, Linux, macOS - .NET 8 on Windows, Linux, macOS - .NET 7 on Windows, Linux, macOS - .NET 6 on Windows, Linux, macOS - .NET 5 on Windows, Linux, macOS - .NET Framework 4.0, 4.5.x, 4.6.x, 4.7.x, 4.8.x - .NET Framework 3.5 SP1 - .NET Core 3.1 on Windows, Linux, macOS - Xamarin.Android (10.1 and higher; via .NET Standard 2.1) - Xamarin.iOS (13.10 and higher; via .NET Standard 2.1) - Mono 6.0 or higher on Linux and macOS |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.9820 | 107 | 11/20/2026 |
| 8.0.9797 | 4,116 | 10/28/2026 |
| 8.0.9709 | 6,889 | 8/3/2026 |
| 8.0.9673 | 1,402 | 6/25/2026 |
| 8.0.9663 | 228 | 6/24/2026 |
| 8.0.9643-rc.4 | 124 | 5/27/2026 |
| 8.0.9531-rc.3 | 136 | 2/4/2026 |
| 8.0.9440-rc.2 | 246 | 11/5/2025 |
| 8.0.9392-rc.1 | 334 | 9/19/2025 |
| 7.0.9796 | 159 | 10/28/2026 |
| 7.0.9649 | 227 | 6/23/2026 |
| 7.0.9561 | 4,898 | 3/6/2026 |
| 7.0.9448 | 6,288 | 11/12/2025 |
| 7.0.9391 | 23,220 | 9/17/2025 |
| 7.0.9313 | 5,932 | 6/30/2025 |
| 7.0.9209 | 7,711 | 3/20/2025 |
| 7.0.9147 | 7,580 | 1/16/2025 |
| 7.0.9119 | 5,079 | 12/19/2024 |
| 7.0.9083 | 7,178 | 11/13/2024 |
| 6.0.9280 | 4,590 | 6/30/2025 |
