![]() |
VOOZH | about |
dotnet add package Aspose.Email --version 26.5.0
NuGet\Install-Package Aspose.Email -Version 26.5.0
<PackageReference Include="Aspose.Email" Version="26.5.0" />
<PackageVersion Include="Aspose.Email" Version="26.5.0" />Directory.Packages.props
<PackageReference Include="Aspose.Email" />Project file
paket add Aspose.Email --version 26.5.0
#r "nuget: Aspose.Email, 26.5.0"
#:package Aspose.Email@26.5.0
#addin nuget:?package=Aspose.Email&version=26.5.0Install as a Cake Addin
#tool nuget:?package=Aspose.Email&version=26.5.0Install as a Cake Tool
๐ Version 26.5.0
๐ NuGet
๐ .NET
๐ Docs
๐ API Ref
๐ Examples
๐ Blog
๐ Releases
๐ Support
๐ License
Aspose.Email for .NET is a comprehensive email management API designed for developers working with Microsoft Outlookยฎ items, MIME messages, email clients, and various protocols including SMTP, POP3, IMAP, Exchange, and Microsoft Graph. It facilitates sending and receiving emails, managing appointments, contacts, and attachments, as well as converting email files between different formats. With support for platforms such as Gmail, Zimbra, Thunderbird, and IBM Notes, Aspose.Email for .NET enables developers to create interactive AMP HTML emails, handle advanced email validation, and read Outlook storage files like PST, OST, and OLM. Whether working with cloud-based email services or handling on-premises email storage, Aspose.Email provides an efficient and flexible solution for managing email data in .NET applications.
- Send email messages using MailGun or SendGrid services.
- Use
DeliveryServiceOptionsto configure service-specific settings.- Code sample to send an email synchronously and asynchronously.
- Error handling for unsuccessful email deliveries.
- Create and set email contents in .NET.
- Work with attachments and embedded objects.
- Extract contents from MIME messages.
- Load and save messages using
MailMessage.- Track document conversion progress and render hyperlinks with custom styles.
- Create appointments and save them as
.msgor.ics.- Create appointments with HTML content.
- Load appointments in ICS format.
- Convert appointments to
MailMessageorMapiMessage.- Read multiple events from an ICS file.
- Write multiple events to an ICS file.
- Determine the appointment version using
Appointment.Version.
- Create and save MSG files.
- Load, view, and parse MSG files.
- Manage message files using
Aspose.Email.Outlook.- Work with voting options, follow-up flags, and due dates.
- Manage attachments, contacts, tasks, notes, calendar items, distribution lists, and recurrences.
- Create PST files and add subfolders/messages.
- Read and convert OST files.
- Work with messages, contacts, distribution lists, calendar items, MapiTasks, MapiJournal, and MapiNote in PST.
- Split and merge PST files.
- Password protect PST files.
- Read corrupted PST/OST files and convert OLM to PST.
- Send emails synchronously or asynchronously using
SmtpClient.- Perform mail merge and row-wise mail merge.
- Use multiconnection mode to send multiple messages concurrently.
- Send messages in TNEF format to preserve email formatting.
- Send meeting requests via email.
- Delete emails by index or delete all emails using
Pop3Client.- Cancel deletion of messages using
Pop3Client.UndeleteMessages.- Validate mail server credentials using
ValidateCredentialsmethod.
- Support for IMAP IDLE command to wait for new email.
- List server extensions such as IDLE, UNSELECT, and QUOTA.
- Fetch messages and list attachments.
- Validate mail server credentials.
- Log IMAP activity for debugging.
- Send meeting requests using
EWSClient.- Create, update, and cancel appointments.
- List appointments with paging support.
- Add events to secondary calendar folders.
- Share calendar invitations via Exchange server.
- Create, list, delete, fetch, and update Google Calendars.
- Manage calendar access control rules (list, create, update, delete).
- Retrieve client settings and color info.
- Work with appointments: add, retrieve, update, move, and delete.
- Write messages to Thunderbird storage using
MboxrdStorageWriter.- Delete emails using
MboxClient.
- Convert
.emlto different formats usingAspose.Email.- Load
.emlfiles and convert them intoMailMessage.- Convert appointments to
MailMessageorMapiMessage.
- Read Zimbra TGZ storage files using
TgzReader.- Get total items count from a TGZ file.
- Save messages with directory structure.
- Export calendar and contact items from Zimbra backup files.
Validate email addresses, domains, and mail servers using
Aspose.Email.Verifications. Supports syntax-only validation, domain validation, and mail server connection validation usingEmailValidator.
Create interactive AMP HTML emails using
AmpMessagewith components likeAmpImage,AmpCarousel,AmpAccordion,AmpForm, and more for enhanced user interaction.
Use classes such as
AmpImage,AmpCarousel,AmpForm,AmpFitText, andAmpAccordionto embed various interactive elements in AMP emails.
Detect if a file is in NSF format using
FileFormatUtil.DetectFileFormat().
Use
NotesStorageFacilityto read messages from an NSF storage file with theEnumerateMessagesmethod. Note: Reading folders is not supported.
| Format | Description | Load | Save |
|---|---|---|---|
| MSG | This format is used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks. Aspose.Email supports reading, writing, and modifying MSG files. | โ๏ธ | โ๏ธ |
| PST | Represents Outlook Personal Storage Files that store emails, calendar items, notes, contacts, and several other file formats. Aspose.Email allows working with PST files, including reading, writing, and manipulating data. | โ๏ธ | โ๏ธ |
| OST | Represents the userโs mailbox data in offline mode on the local machine upon registration with Exchange Server using Microsoft Outlook. Aspose.Email allows working with OST files, including reading and manipulating data. | โ๏ธ | โ๏ธ |
| OFT | Message template files created using Microsoft Outlook. Aspose.Email allows working with OFT files, including reading and writing. | โ๏ธ | โ๏ธ |
| OLM | Format used by Microsoft Outlook for Mac for storing email messages, contacts, journals, calendar data, and other user application data. Aspose.Email supports the extraction, manipulation, and conversion of the data housed within these archives. | โ๏ธ | |
| EML | Represents email messages saved using Outlook and other relevant applications. Aspose.Email provides support for reading and writing EML files, as well as converting them to other formats. | โ๏ธ | โ๏ธ |
| EMLX | Format used by Apple Mail to store a single email message. Aspose.Email enables reading and writing of EMLX files. | โ๏ธ | โ๏ธ |
| MBOX | Represents a container for a collection of electronic mail messages. Aspose.Email provides support for reading and writing MBOX files. | โ๏ธ | โ๏ธ |
| ICS | The iCalendar format used for exchanging and deploying calendar events and scheduling. Aspose.Email provides support for reading and writing ICS files, allowing integration of calendar data into applications. | โ๏ธ | โ๏ธ |
| VCF | Virtual Card Format is a digital file format for storing contact information. Aspose.Email allows users to read, write, and manipulate contact data. | โ๏ธ | โ๏ธ |
| HTML | HTML (HyperText Markup Language) is the extension for web pages created for display in browsers. Aspose.Email equips developers with the capability to handle HTML files, facilitating the extraction and utilization of content from these files within their applications. | โ๏ธ | โ๏ธ |
| MHTML | Web page archive format that saves the HTML code and associated resources in a single file. Aspose.Email supports reading MHTML files, allowing extraction of their content for use in applications. | โ๏ธ | โ๏ธ |
Windows Server (2003, 2008, 2012), XP, Vista, 7, 8, 8.1, 10, Windows Azure
Ubuntu, openSUSE, CentOS, and others
macOS
2.0 - 4.7.2, .NET Standard 2.0, .NET Core (2.0, 2.1)
Mono 5.4+
Xamarin.Android, Xamarin.iOS, Xamarin.Mac
2010, 2011, 2012, 2013, 2015, 2017, 2019
Tools โ Library Package Manager โ Package Manager Console).Install-Package Aspose.Email -Version x.x.0Update-Package Aspose.EmailReferences โ Add Reference.Aspose.Email.dll and add it.Control Panel โ Add/Remove Programs.Aspose.Email and click Remove..config) to redirect references if targeting .NET 1.0 instead of 1.1.This code demonstrates how to load a MSG file, convert it to EML format, and preserve RTF content.
var loadOptions = new MsgLoadOptions
{
PreserveRtfContent = true
};
var eml = MailMessage.Load("my.msg", loadOptions);
var conversionOptions = new MailConversionOptions
{
PreserveRtfContent = true
};
var msg = MapiMessage.Load("my.msg");
var eml = msg.ToMailMessage(conversionOptions);
This code demonstrates how to retrieve messages asynchronously from an IMAP server using Aspose.Email.
List<MailMessage> mailMessages = new List<MailMessage>();
// create mail messages
for (int i = 0; i < 100; i++)
mailMessages.Add(new MailMessage(senderEmail, receiverEmail, $"Message #{i}", "Text"));
using (ImapClient client = new ImapClient(host, 993, senderEmail, password, SecurityOptions.SSLImplicit))
{
CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
AutoResetEvent autoResetEvent = new AutoResetEvent(false);
Exception exception = null;
ThreadPool.QueueUserWorkItem(delegate
{
try
{
// start uploading the messages
var task = client.AppendMessagesAsync(mailMessages, cancellationTokenSource.Token);
AppendMessagesResult appendMessagesResult = task.GetAwaiter().GetResult();
Console.WriteLine("All messages have been appended.");
}
catch (Exception ex)
{
exception = ex;
}
finally
{
autoResetEvent.Set();
}
});
autoResetEvent.WaitOne();
}
This code snippet shows how to extract attachments from an email message, save them, and print the attachment names.
var eml = MailMessage.Load("Message.eml", new MsgLoadOptions());
foreach (var attachment in eml.Attachments)
{
attachment.Save("MessageEmbedded_out.eml");
Console.WriteLine(attachment.Name);
}
๐ Docs
๐ API Ref
๐ Examples
๐ Blog
๐ Releases
๐ Support
๐ License
Email Management API | .NET Email API | MIME Messages | Outlook Integration | SMTP Protocol | POP3 Protocol | IMAP Protocol | Exchange EWS | Microsoft Graph | Gmail API | Thunderbird Email | Email Conversion | Zimbra Integration | AMP HTML Email | IBM Notes | Email Validation | Email Attachments | Outlook PST | OST File | EML Conversion | Apple Mail | ICS Format | Contact Management | Calendar Events | Xamarin Support | Linux Compatible | macOS Support | HTML Format
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net6.0-windows7.0 net6.0-windows7.0 is compatible. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net40 net40 is compatible. net40-client net40-client is compatible. net403 net403 was computed. net45 net45 is compatible. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Aspose.Email:
| Package | Downloads |
|---|---|
|
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications. |
|
|
Weavy.Core
A class library containing core business logic, data access and utility methods required by Weavy. |
|
|
AsposeHelpers
Aspose helpers |
|
|
Weavy.Admin
Razor class library containing the management interface for Weavy. |
|
|
AutomationFramework_NetCore
AT Net Core Automation Framework |
Showing the top 2 popular GitHub repositories that depend on Aspose.Email:
| Repository | Stars |
|---|---|
|
aspose-words/Aspose.Words-for-.NET
Aspose.Words for .NET examples, plugins and showcases
|
|
|
JasonBock/Rocks
A mocking library based on the Compiler APIs (Roslyn + Mocks)
|
| Version | Downloads | Last Updated |
|---|---|---|
| 26.5.0 | 6,280 | 5/31/2026 |
| 26.4.0 | 21,506 | 4/30/2026 |
| 26.3.0 | 21,187 | 3/28/2026 |
| 26.1.0 | 98,819 | 1/31/2026 |
| 25.12.0 | 43,312 | 12/25/2025 |
| 25.11.0 | 92,298 | 11/9/2025 |
| 25.9.0 | 93,247 | 9/30/2025 |
| 25.8.0 | 65,852 | 8/30/2025 |
| 25.7.0 | 56,510 | 7/31/2025 |
| 25.6.0 | 35,026 | 6/30/2025 |
| 25.5.1 | 27,738 | 6/11/2025 |
| 25.5.0 | 24,504 | 5/30/2025 |
| 25.4.1 | 37,699 | 5/10/2025 |
| 25.4.0 | 35,833 | 4/27/2025 |
| 25.3.0 | 39,749 | 3/31/2025 |
| 25.2.0 | 68,190 | 2/28/2025 |
| 25.1.0 | 63,315 | 1/31/2025 |
| 24.12.0 | 94,406 | 12/29/2024 |
| 24.11.0 | 78,012 | 11/30/2024 |
| 24.10.0 | 80,869 | 10/31/2024 |