VOOZH about

URL: https://www.nuget.org/packages/Aspose.Email/

โ‡ฑ NuGet Gallery | Aspose.Email 26.5.0


๏ปฟ
dotnet add package Aspose.Email --version 26.5.0
 
 
NuGet\Install-Package Aspose.Email -Version 26.5.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.Email" Version="26.5.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aspose.Email" Version="26.5.0" />
 
Directory.Packages.props
<PackageReference Include="Aspose.Email" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Aspose.Email --version 26.5.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Aspose.Email, 26.5.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Aspose.Email@26.5.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aspose.Email&version=26.5.0
 
Install as a Cake Addin
#tool nuget:?package=Aspose.Email&version=26.5.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Effortless Email Management API

๐Ÿ‘ Version 26.5.0
๐Ÿ‘ NuGet
๐Ÿ‘ .NET

๐Ÿ‘ banner


๐Ÿ‘ 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 via MailGun and SendGrid

  • Send email messages using MailGun or SendGrid services.
  • Use DeliveryServiceOptions to configure service-specific settings.
  • Code sample to send an email synchronously and asynchronously.
  • Error handling for unsuccessful email deliveries.

Working with MIME Messages

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

Working with Appointments

  • Create appointments and save them as .msg or .ics.
  • Create appointments with HTML content.
  • Load appointments in ICS format.
  • Convert appointments to MailMessage or MapiMessage.
  • Read multiple events from an ICS file.
  • Write multiple events to an ICS file.
  • Determine the appointment version using Appointment.Version.

Working with Outlook Items

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

Working with Outlook Storage Files

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

Working with SMTP Client

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

Working with POP3 Client

  • Delete emails by index or delete all emails using Pop3Client.
  • Cancel deletion of messages using Pop3Client.UndeleteMessages.
  • Validate mail server credentials using ValidateCredentials method.

Working with IMAP Client

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

Working with Exchange EWS Client

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

Programming with Gmail

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

Programming with Thunderbird

  • Write messages to Thunderbird storage using MboxrdStorageWriter.
  • Delete emails using MboxClient.

Convert Email Files using C# API

  • Convert .eml to different formats using Aspose.Email.
  • Load .eml files and convert them into MailMessage.
  • Convert appointments to MailMessage or MapiMessage.

Working with Zimbra

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

Email Verification with Aspose.Email

Validate email addresses, domains, and mail servers using Aspose.Email.Verifications. Supports syntax-only validation, domain validation, and mail server connection validation using EmailValidator.

AMP HTML Email Creation

Create interactive AMP HTML emails using AmpMessage with components like AmpImage, AmpCarousel, AmpAccordion, AmpForm, and more for enhanced user interaction.

Adding AMP Components

Use classes such as AmpImage, AmpCarousel, AmpForm, AmpFitText, and AmpAccordion to embed various interactive elements in AMP emails.

Detect NSF File Format

Detect if a file is in NSF format using FileFormatUtil.DetectFileFormat().

Read Messages from NSF File

Use NotesStorageFacility to read messages from an NSF storage file with the EnumerateMessages method. Note: Reading folders is not supported.

Supported File Formats

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. โœ”๏ธ โœ”๏ธ

Supported Operating Systems

Windows

Windows Server (2003, 2008, 2012), XP, Vista, 7, 8, 8.1, 10, Windows Azure

Linux

Ubuntu, openSUSE, CentOS, and others

Mac

macOS

Supported Frameworks

.NET Frameworks

2.0 - 4.7.2, .NET Standard 2.0, .NET Core (2.0, 2.1)

Mono Framework

Mono 5.4+

Xamarin

Xamarin.Android, Xamarin.iOS, Xamarin.Mac

Development Environments

Microsoft Visual Studio

2010, 2011, 2012, 2013, 2015, 2017, 2019

Installation Steps for Aspose.Email for .NET

1. Install via NuGet

  • Open Visual Studio โ†’ NuGet Package Manager.
  • Search "aspose" and click "Install" for Aspose.Email.

2. Install or Update via Package Manager Console

  • Open Package Manager Console (Tools โ†’ Library Package Manager โ†’ Package Manager Console).
  • To install:
    Install-Package Aspose.Email -Version x.x.0
  • To update:
    Update-Package Aspose.Email

3. Reference Aspose.Email in Your Project

  • In Solution Explorer, right-click References โ†’ Add Reference.
  • Locate Aspose.Email.dll and add it.

4. Uninstall Aspose.Email for .NET

  • Go to Control Panel โ†’ Add/Remove Programs.
  • Select Aspose.Email and click Remove.

5. Target Specific .NET Framework Version

  • Modify the configuration file (.config) to redirect references if targeting .NET 1.0 instead of 1.1.

Convert MSG File to EML and Preserve RTF Content

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

Retrieve Messages Asynchronously using ImapClient

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

Extract Email Attachments

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


Tags

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (13)

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

GitHub repositories (2)

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
Loading failed