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 mails, 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. The overview of these features and their use with code samples you can find in our documentation.
Aspose.Email for .NET makes it easier for the developers to work with Microsoft Outlook & Mozilla Thunderbird as it supports a number of formats such as MSG, EML, EMLX, PST, OST, MBOX and MHT. The full number of formats you can find on the list of the supported file formats.
Aspose.Email for .NET also 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 Exchange Web Services and Microsoft Graph to send & receive emails with attachments and list or remove messages from the server.
At a Glance
An overview of C# parser API.
- Create PST & OST files
- Manage Messages in PST
- Manage Contacts in PST
- Manage Calendar Items in PST
- Manage Tasks, Notes, Journals
- Creation of Distribution Lists
- Email Connection Protocols
- Supports SSL Enabled Servers
- Supports Connection Timeout
- Work with Gmail Contacts
- Work with Gmail Calendar
- Validate Addresses
- Validate Syntax
- Validate Domain
- Validate MX Records
- Create plain & HTML emails
- Load Variety of Formats
- Interconvert Messages
- Support for Templates
- Alternative Message Bodies
- Manage Embedded Objects
- Manage Attachments
- Save Message as Draft
- Manage Headers
- Read & Write to Thunderbird Mail Storage
- Recurrence Patterns
- Create Appointment
- Export Appointment to ICS file
- Format Appointment text
- Read Appointment Info
- Send Appointment Request
Aspose.Email for .NET supports .NET framework, .NET Core & Xamarin platforms.
Supported File Formats
Aspose.Email for .NET native Outlook message formats, message storage formats and more file formats .
- Microsoft Outlook: MSG, PST, OST, OFT
- EML, EMLX, MBOX
- Others: ICS, VCF, HTML, MHTML
- Mac Outlook: OLM
Advanced .NET Email API Features
Create & update tasks using iCalendar
Inter-convert message formats
Generate specified recurrence patterns as per iCalendar RFC
Mail merge from a template
Support for HTTP Proxy in Email clients, i.e. POP3, IMAP and SMTP
Support for creating ICF and VCF version 3.0 files
Dynamically Convert Messages to Multiple Email Formats in .NET
Aspose.Email is a good choice if you are looking for an API to convert emails to various 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.
Try our free Email Converter.
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 with 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. How to handle iCalendar API you can learn from the Working with Appointments article.
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 receiving emails as well as viewing mailbox size & message count, retrieving the full message or just the headers, deleting messages from the server and so on. How to handle email protocols you can learn from corresponding articles in our developer guide.
IMAP protocol features enable the user of API to authenticate, 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 Microsoft Exchange Server in order to perform several operations. You can list messages from any folder, download messages and save them in the supported message formats. Emails and meeting invitations can also be sent using the Exchange Server 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 a disk location in order to retrieve full folder hierarchy and read message specific details like subject, sender, recipient or extract messages with attachments. You will handle PST and OST files easily after visiting the Working with Outlook Storage Files section.
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.You can also process Outlook contact cards as well as Thunderbird VCards. Using Aspose.Email for .NET you are able to send VCard or VCF files in emails, attach VCards to your messages. Also, you can exchange VCard files in your own 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. It's pretty easy to migrate from Office Automation to Aspose.