.NET Email Processing APIs

Create, Parse and Convert email formats including MSG, EML, EMLX & MHT without any Microsoft Outlook dependencies.

  Download Free Trial
Aspose.Email for .NET

Aspose.Emailfor .NET


Aspose.Email for .NET is a complete set of Email Processing APIs to build cross-platform applications having the ability to create, manipulate, convert and transmit emails without using Microsoft Outlook. API provides the email manipulation functionality such as add, extract or remove attachments from a message object, customize message headers by adding or removing recipients or changing the subject and more.

Aspose.Email for .NET makes it easier to work with a number of Outlook message formats such as MSG, EML, EMLX and MHT as well as provides the ability to manage message storage files such as Personal Storage Files (PST) & Offline Storage Files (OST). Developers can use the API to send emails via a number of popular protocols like POP3, IMAP & SMTP or connect with Microsoft Exchange Server via WebDav and Exchange Web Services to send & receive emails with attachments.


Advanced .NET Email API Features



Send email with HTML formatting & attachments


Mail merge & bulk mail sending functionality


List & download messages from POP3 & IMAP mail servers


List, download & send messages via Microsoft Exchange Servers


Create & update tasks using iCalendar


Load messages from file or stream


Save messages to file or stream


Inter-convert message formats


Manipulate message Personal & Offline storage files


Add messages, contacts, tasks, notes, calendar items & distribution lists to PST


Extract messages, contacts & calendar items from PST


Generate specified recurrence patterns as per iCalendar RFC


Manipulate Calendar items using Exchange Web Service (EWS) client


Add embedded objects & attachments to emails


Include text & HTML mail body


Mail merge from a template


Send iCalendar compliant appointments or meetings


Create customized mail headers


Support for HTTP Proxy in Email clients, i.e. POP3, IMAP and SMTP


Converting Outlook Task to MHTML


Single unified Method for Fetching various types of Outlook Items


Create contact in Sub-Folder of Contacts in EWS


Add Attachment to Recurring Calendar Events


Update member in a PST distribution list (DL) & append a (DL) to an existing DL


Support for Outlook for Mac Data File OLM


Support for creating ICF and VCF version 3.0 files


Get folder path in OLM file


Get list of custom folders created by user


Add multi-connection support for recursive ListMessages IMAP and POP3 operation

Dynamically Convert MSG to EML, HTML & MHTML

Aspose.Email is a good choice if you are looking for an API to convert MSG files to EML, HTML or MHTML formats. It provides easy-to-use interfaces for the conversion process while hiding all the ugly details of the underlying format specifications. All you need to do is to load the source file in Aspose.Email object model call the Save method with appropriate parameters. It is really that simple!

Save message in different formats - C#

// load the file to be converted
using (var message = Aspose.Email.MailMessage.Load(dir + "template.msg"))
    // save in different formats
    message.Save(dir + "output.eml", Aspose.Email.SaveOptions.DefaultEml);
    message.Save(dir + "output.html", Aspose.Email.SaveOptions.DefaultHtml);
    message.Save(dir + "output.mhtml", Aspose.Email.SaveOptions.DefaultMhtml);

Manage Calendar Objects with iCalendar API

Aspose.Email provides you the capability to create and save Outlook Calendar objects through its iCalendar API. Not only you can extract the Calendar objects in various formats and save them as MSG or ICS files but you can also send, retrieve, update and cancel meeting requests through message sending protocols.

Send & Receive Emails via SMTP, POP3 & IMAP

Aspose.Email for .NET empowers you to create complex email messages with attachments, HTML formatting and images, and send email using SMTP protocol. It also allows you to log onto the POP3 servers by username and password or APOP authentication to perform operations like receive emails as well as view mailbox size & message count, retrieve the full message or just the headers, delete messages from the server and so on.

Aspose.Email for .NET also supports IMAP protocol features including authentication, create, delete, select, query folders, get and save messages, change message flags and basic IMAP commands.

Connect to Microsoft Exchange Server

Aspose.Email for .NET provides the ability to connect with a Microsoft Exchange Server in order to perform several operations. You can list messages from any folder, download messages and save them in supported message formats. Emails and meeting invitations can also be sent using the Exchange Server's WebDav & Exchange Web Services. The Email .NET API also supports Unified Messaging operations and auto discovery of Exchange Server settings based on the specified credentials.

Complete Recurrence Pattern Solution

Aspose.Email for .NET allows you to easily and reliably calculate occurrence dates and times for even the most complex recurrence patterns. You can dynamically produce & consume recurrence patterns in the iCalendar format. Aspose.Email for .NET further allows you to use yearly, monthly, weekly, daily, hourly, minutely & secondly recurrence patterns, and can represent recurrence patterns in your windows, web or mobile applications. The recurrence patterns implemented by Aspose.Email for .NET are coherent with schedule related elements of the iCalendar RFC (2445).

Manage Message Storage Files

Email API can easily load Microsoft Outlook files from a stream or disk, retrieve full folder hierarchy from message archive as well as all message specific detail like subject, sender, recipient and save messages to stream or disk.

List messages from a PST - C#

// load PST file
using (var pst = Aspose.Email.Storage.Pst.PersonalStorage.FromFile(dir + "template.pst"))
    // list PST folders
    foreach (var folder in pst.RootFolder.GetSubFolders())
        // list messages in a folder
        foreach (var msg in folder.EnumerateMessages())
            var folderInfo = pst.GetParentFolder(msg.EntryId);
            Console.WriteLine(msg.Subject + ":" + folderInfo.DisplayName);

Microsoft Office Automation – Not Needed

Aspose.Email for .NET is built using managed code that does not need Microsoft Office or Microsoft Outlook to be installed on the machine to work with emails processing. It is a perfect Microsoft Outlook automation alternative in terms of supported features, security, stability, scalability, speed and price.


Support and Learning Resources


Aspose.Email offers individual Email APIs for other popular development environments as listed below: