Rebex.Msg
8.0.9797
Prefix Reserved
dotnet add package Rebex.Msg --version 8.0.9797
NuGet\Install-Package Rebex.Msg -Version 8.0.9797
<PackageReference Include="Rebex.Msg" Version="8.0.9797" />
<PackageVersion Include="Rebex.Msg" Version="8.0.9797" />
<PackageReference Include="Rebex.Msg" />
paket add Rebex.Msg --version 8.0.9797
#r "nuget: Rebex.Msg, 8.0.9797"
#:package Rebex.Msg@8.0.9797
#addin nuget:?package=Rebex.Msg&version=8.0.9797
#tool nuget:?package=Rebex.Msg&version=8.0.9797
Rebex MSG - The C# Outlook MSG library for .NET
Rebex MSG is a .NET library for reading, processing, and writing Microsoft Outlook .MSG email message files. It provides access to message subject, bodies (plain text, HTML, RTF), sender, recipients, and attachments through the MsgMessage class, and allows direct manipulation of MAPI properties. For working with EML (MIME) messages and S/MIME, use Rebex.Mail. To send and receive messages, use Rebex.Smtp, Rebex.Imap, Rebex.Pop3, Rebex.Ews, or Rebex.Graph.
Key features
- MSG message API - load, save, create, and manipulate Outlook MSG messages; subject, plain text/HTML/RTF bodies, sender, recipients, attachments
- MAPI properties - list, read, and write MAPI properties by tag, numerical ID, or string name
- MIME and S/MIME - convert between MSG and EML formats; sign, encrypt, and verify messages using X.509 certificates (via Rebex.Mail)
Getting started
Load and inspect a MSG file
// load a message from file
var message = new MsgMessage();
message.Load(@"C:\MyData\sample.msg");
// print some info
Console.WriteLine("Subject: {0}", message.Subject);
Console.WriteLine("From: {0}", message.From);
Console.WriteLine("Body: {0}", message.BodyText);
Create a new MSG message
var message = new MsgMessage();
// set subject and body
message.Subject = "Rebex MSG sample";
message.SetBody("This is plain-text body.", "This is <b>HTML</b> body.", null);
// set sender
message.From = new MsgAddress("alice@example.org", "Alice");
// add recipients
message.To.Add("bob@example.org", "Bob");
message.CC.Add("Joe <joe@example.org>");
// add an attachment
message.Attachments.Add(@"C:\MyData\report.pdf");
// save the message
message.Save(@"C:\MyData\message.msg");
Save to a stream
var message = new MsgMessage();
message.Load(@"C:\MyData\sample.msg");
// save the message into a memory stream
var stream = new MemoryStream();
message.Save(stream);
Work with attachments
var message = new MsgMessage();
message.Load(@"C:\MyData\sample.msg");
// display the list of attachments
foreach (MsgAttachment attachment in message.Attachments)
{
Console.WriteLine("Attachment: {0} ({1} bytes)",
attachment.FileName,
attachment.Data.Length);
}
Access MAPI properties
var message = new MsgMessage();
message.Load(@"C:\MyData\sample.msg");
// get a property value
string subject = message.Properties.GetValue<string>(MsgPropertyTag.Subject);
// set a new property value
message.Properties.SetValue(MsgPropertyTag.Subject, "New subject");
// display all MAPI properties
foreach (MsgProperty prop in message.Properties)
{
Console.WriteLine("{0}: {1}", prop.Tag, prop.Value);
}
Supported platforms
- .NET 10 on Windows, Linux, macOS, Android, iOS/tvOS
- .NET 9 on Windows, Linux, macOS, Android, iOS/tvOS
- .NET 8 on Windows, Linux, macOS, Android, iOS/tvOS
- .NET 7 on Windows, Linux, macOS, Android, iOS/tvOS
- .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, AMD64.
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 MSG 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
| 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. |
| .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.9797)
- Rebex.Mail (= 8.0.9797)
-
.NETFramework 3.5
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
.NETFramework 4.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
.NETFramework 4.6
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
.NETStandard 2.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
.NETStandard 2.1
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
net10.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
net5.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
net6.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
net7.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
net8.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
-
net9.0
- Rebex.Common (= 8.0.9797)
- Rebex.Mail (= 8.0.9797)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rebex.Msg:
| 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 10 on Windows, Linux, macOS, Android, iOS/tvOS - .NET 9 on Windows, Linux, macOS, Android, iOS/tvOS - .NET 8 on Windows, Linux, macOS, Android, iOS/tvOS - .NET 7 on Windows, Linux, macOS, Android, iOS/tvOS - .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.9797 | 246 | 10/28/2026 |
| 8.0.9709 | 1,157 | 8/3/2026 |
| 8.0.9673 | 482 | 6/25/2026 |
| 8.0.9663 | 209 | 6/24/2026 |
| 8.0.9643-rc.4 | 92 | 5/27/2026 |
| 8.0.9531-rc.3 | 121 | 2/4/2026 |
| 8.0.9440-rc.2 | 238 | 11/5/2025 |
| 8.0.9392-rc.1 | 299 | 9/19/2025 |
| 7.0.9796 | 147 | 10/28/2026 |
| 7.0.9649 | 212 | 6/23/2026 |
| 7.0.9561 | 700 | 3/6/2026 |
| 7.0.9448 | 1,578 | 11/12/2025 |
| 7.0.9391 | 1,191 | 9/17/2025 |
| 7.0.9313 | 1,283 | 6/30/2025 |
| 7.0.9209 | 1,417 | 3/20/2025 |
| 7.0.9147 | 1,731 | 1/16/2025 |
| 7.0.9119 | 1,032 | 12/19/2024 |
| 7.0.9083 | 1,127 | 11/13/2024 |
| 6.0.9280 | 961 | 6/30/2025 |
| 6.0.9082 | 980 | 11/13/2024 |