Rebex MSG

Outlook MSG file format library for .NET

Download 30-day free trial Buy from $199
More .NET libraries

Back to feature list...

MIME and S/MIME API

MIME and MailMessage 

Rebex MSG also includes Rebex.Mail assembly that provides Rebex.Mail.MailMessage, a simple high-level API for working with MIME messages.

For more information about this API, see MIME and MailMessage features at Rebex Mail Pack home page.
// create Mail message
var message = new Rebex.Mail.MailMessage();

// fill some fields
message.From = "alice@example.org";
message.To = "bob@example.org";
message.Subject = "Test";

// add text and HTML bodies
message.BodyText = "This is plain-text body.";
message.BodyHtml = "This is <strong>HTML</strong> body.";

// save message
message.Save(@"C:\MyData\mail.eml");
' create Mail message
Dim message = New Rebex.Mail.MailMessage()

' fill some fields
message.From = "alice@example.org"
message.To = "bob@example.org"
message.Subject = "Test"

' add text and HTML bodies
message.BodyText = "This is plain-text body."
message.BodyHtml = "This is <strong>HTML</strong> body."

' save message
message.Save("C:\MyData\mail.eml")

S/MIME - secure mail 

Rebex.Mail.MailMessage class also supports S/MIME, which makes it possible to sign/verify and encrypt/decrypt MIME messages.

For more information, see S/MIME - secure email features at Rebex Mail Pack home page.

Back to feature list...