Aspose.Email API For .NET | Outlook & Thunderbird Email Processing

Aspose.Email API for .NET to create, parse, convert & manipulate emails & cross-platform email archives without Microsoft Outlook or Thunderbird dependencies.

  Download Free Trial
Aspose.Email for .NET

Aspose.Emailfor .NET


Aspose.Email for .NET is a comprehensive set of Email Processing APIs that can be used to build cross-platform applications with the ability to create mail, manipulate, analyze, convert and transmit messages without using Microsoft Outlook or Office Automation. The API provides the email manipulation features such as addition, extraction or removal of attachments from a message object, customization of message headers by adding or removing recipients or changing the subject and more.

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


Advanced .NET Email API Features



Send email with HTML body & 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)


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 the user


Multi-connection support for recursive IMAP & POP3 operations

Dynamically Convert Message to Multiple Email Formats in .NET

Aspose.Email is a good choice if you are looking for an API to convert emails to different file formats. For example, you can easily convert MSG files to EML, HTML or MHTML formats or vice versa. API has exposed interfaces for all of the possible conversion processes while hiding the underlying format specifications thus making it easy for the developers to integrate the API in their applications. Any of the supported conversion processes are as simple as loading the source file in the library object model and calling the Save method with appropriate parameters.

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 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.

API 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. 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 RFC (2445) format. You may choose to use yearly, monthly, weekly, daily, hourly, minutely & secondly recurrence patterns, and can represent recurrence patterns in your windows, web or mobile applications.

Manage Message Storage Files

Email library can load Microsoft Outlook PST & OST files from a stream object or disk location in order to retrieve full folder hierarchy and read message specific detail like subject, sender, recipient or extract messages with attachments.

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);

Work With Contact Cards

VCard or VCF is a worldwide file format to store and exchange contacts cards. Aspose.Email for .NET allows to manipulate contact card files (VCF) within .NET apps. Process Outlook contact cards as well as Thunderbird VCards. Using Aspose.Email for .NET, you are able to send VCard or VCF files in email, attach VCards to your messages. Also, you can exchange VCard files in your way. The API allows to create, edit and remove your contact cards. You can easily add contact cards support to your application.

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 email processing. It is a perfect Microsoft Outlook automation alternative for dynamic message file manipulation as well as for sending & receiving emails.


Support and Learning Resources


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