.NET Email Processing API to manipulate Outlook email files

Simplify the process of manipulating Microsoft Outlook and Mozilla Thunderbird email files across your C#, ASP.NET, and VB.NET apps. Work with MSG, EML, PST, OST, MBOX, VCF, and HTML file formats. Programmatically manage email messages and attachments via POP3, SMTP, IMAP, or Microsoft Exchange Server.

Download Free TrialView All APIs

A comprehensive .NET Email API for manipulating and processing email messages

Aspose.Email for .NET is a flexible, robust, and easy-to-use email processing API enabling users to create, modify, and parse popular email file formats such as MSG, PST, OST, EML, EMLX, MBOX, as well as VCF, HTML, and MHTML in the .NET platform. This allows the users to work with different email message formats without worrying about any format compatibility issues. In addition to accessing and managing Thunderbird and Outlook emails, developers can use the .NET Email API to programmatically manipulate email attachments, add or remove recipients, modify the message subject, and do much more.

Furthermore, the ability to convert email messages from one format to another across C#, ASP.NET, and VB.NET makes this .NET email processing API stand out in usage and feature set. You can effortlessly send and receive email messages using the protocol of your choice among POP3, SMTP, IMAP, or connect to Microsoft Exchange Server. Aspose.Email for .NET helps you automate the email management process efficiently.

Getting Started

Please check the System Requirements page for the prerequisites before setting up Aspose.Email for .NET at your end. The following information will help you correctly set up the .NET emailing API.

Aspose.Email for .NET Installation

To download the DLLs or the MSI installer, please visit the downloads section. Alternatively, you can use the NuGet package for API installation. The package manager command to setup the .NET email processing API is shared below:

PM > Install-Package Aspose.Email

How to Convert Outlook Emails to HTML and Open Email Messages Without Outlook in .NET

Aspose.Email for .NET API enables programmatically converting MSG and EML messages to HTML format. It also supports accessing and opening Outlook emails within your .NET apps without needing Microsoft Outlook.

Convert MSG or EML Files to HTML in .NET

Seamlessly transform Outlook emails to HTML format with the help of Aspose.Email for .NET library. You can develop a full-featured email processing application using the .NET emailing API and incorporate the email conversion functionality to convert MSG or EML formats to HTML. Please refer to the code snippet and other information shared below for this purpose:

  • Instantiate the MailMessage class object to access the source MSG or EML file.
  • Apply the HTML save options for the output HTML file.
  • Save or export the MSG file in HTML format using the Save method.
string FilePath = @"/Users/EmailData/";
// Load the MSG or EML file
MailMessage srcEmlMessage = MailMessage.Load(FilePath + "Message.msg");

// Set the Html rendering options
HtmlSaveOptions HtmlOptions = SaveOptions.DefaultHtml;
HtmlOptions.ResourceRenderingMode= resourceRenderingMode.EmbedIntoHtml;

// Set the email message headers in  output HTML using the formatting options
HtmlOptions.HtmlFormatOptions = HtmlFormatOptions.WriteHeader |
				HtmlFormatOptions.WriteCompleteEmailAddress |

// Convert and save the email to HTML format
srcEmlMessage.Save(FilePath + "Message.html", HtmlOptions);

Open Emails in .NET without Outlook

Are you looking to open Outlook messages in your .NET email processing apps without installing Microsoft Outlook? If yes, Aspose.Email for .NET API is the right choice for you. It allows .NET developers to access and open MSG email files and retrieve information such as the email subject, sender address, and attachments. Please check the following information to learn more:

  • Load the source MSG email file into a MapiMessage class object.
  • Read and display different properties of the MSG file.
  • Parse through the attachments and read/display different properties of the attachments in the MSG file.
// Load the MSG file
MapiMessage mapiMsg = MapiMessage.Load("message.msg");

// Display email subject
Console.WriteLine("Subject:" + mapiMsg.Subject);

// Display sender address
Console.WriteLine("From:" + mapiMsg.SenderEmailAddress);

// Display email body
Console.WriteLine("Body" + mapiMsg.Body);

// Display recipients' information
Console.WriteLine("Recipient: " + mapiMsg.Recipients);

// Display email attachments
foreach (MapiAttachment att in mapiMsg.Attachments)
     Console.Write("File Name: " + att.FileName);
     Console.Write("Display Name: " + att.DisplayName);

To view more working examples and coding samples of Aspose.Email for .NET API, please visit the GitHub examples page. We also provide free online apps for Aspose.Email to help you convert, compare, view, watermark, merge, edit, and digitally sign your email files on-the-fly using your mobile devices.

Email parsing with no dependencies in .NET

.NET developers working with multiple email file formats can utilize the extensive features of Aspose.Email for .NET to build email processing apps loaded with the capability to securely and independently parse and store email messages. Microsoft Automation or any other third-party software isn’t required because this .NET email API is built using managed code.


1. How can I convert email files in .NET?

Converting Microsoft Exchange or Thunderbird email files in .NET is quick and easy using Aspose.Email for .NET API. Only a few lines of .NET coding are needed to convert MSG, PST, OST, EML, EMLX, MBOX, and HTML files to different file formats.

2. How long it takes to convert or process email files?

The .NET API for manipulating and processing email files works fast and completes your email file conversion requests in no time.

3. Is it safe to process emails using the .NET API?

You can be sure of the security of your email message files while processing them using Aspose.Email for .NET API. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.

4. Can I process email files on Mac OS, Windows, or Linux?

Yes, the email processing API for .NET works across different OS, frameworks, and operating environments. You can use it on the platform of your choice and it does not require any additional software installation to function.

Looking for help?

Checkout our support channels for help with your questions related to Aspose product API features and working.

Ready to get started?

Download Free Trial View All APIs