Aspose.Email 20.5.0

Aspose.Email for .NET is an Email Processing API that allows the developers to work with email formats, protocols and services without using Microsoft Outlook® or Office Automation.

Install-Package Aspose.Email -Version 20.5.0
dotnet add package Aspose.Email --version 20.5.0
<PackageReference Include="Aspose.Email" Version="20.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Email --version 20.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET Email API

Aspose.Email for .NET allows you to work with MIME messages, appointments, Microsoft Outlook® items, Outlook storage files, various clients & protocols (SMTP, POP3, IMAP, Exchange EWS, Exchange WebDav, Gmail, Thunderbird, Zimbra, IBM Notes & AMP HTML emails and more.

Email API Features

  • Open or save emails in Microsoft Outlook & other formats.
  • Conversion of email files to various formats.
  • Parse, read & save MS Outlook emails, PST & OST files.
  • Comprehensive support for MIME messages.
  • Send & receive emails via POP3, IMAP, Microsoft Exchange Server.
  • Send emails in bulk while performing mail merge via various types of data sources.
  • Send iCalendar compliant messages.
  • Consume and produce recurrence patterns in the iCalendar (RFC 2445) format.
  • Tools to verify email addresses, email syntax, email domain, mail server & MX records.
  • Extract objects from various mail storage formats as well as create email storage files from scratch.

New Features in Version 20.5

  • Added support for Email Threading using ImapClient.

Enhancements in Version 20.5

  • IEWSClient: Get folder info by path.

For the detailed notes, please visit Aspose.Email for .NET 20.5 Release Notes.

Read & Write Email Formats

Microsoft Outlook: MSG, PST, OST, OFT
Email: EML, EMLX, MBOX
Others: ICS, VCF, HTML, MHTML

Read Email Formats

Mac Outlook: OLM

Platform Independence

Aspose.Email for .NET is implemented using Managed C# and can be used with any .NET based languages including C#, VB.NET, J# and so on. Aspose.Email for .NET can be integrated with any kind of application on Windows, Linux, Mac OS X and Xamarin Platforms.

Getting Started with Aspose.Email for .NET

Are you ready to give Aspose.Email for .NET a try? Simply execute Install-Package Aspose.Email from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Email for .NET and want to upgrade the version, please execute Update-Package Aspose.Email to get the latest version.

Create an Email Message & Save it in MSG Format using C# Code

You can execute below code snippet to see how Aspose.Email API performs in your environment or check the GitHub Repository for other common usage scenarios.

// create an instance of the MailMessage class
var message = new MailMessage();
// set from, to, subject and body properties
message.From = "sender@domain.com";
message.To = "receiver@domain.com";
message.Subject = "This is test message";
mamessageilMsg.Body = "This is test body";
// create an instance of the MapiMessage class and pass object of MailMessage as argument
var msg = MapiMessage.FromMailMessage(message);
// save file on disc
msg.Save(dir + "output.msg");

Send Bulk Emails via SMTP

// create SmtpClient as client and specify server, port, user name and password
SmtpClient client = new SmtpClient("mail.server.com", 25, "Username", "Password");

// create instances of MailMessage class and Specify To, From, Subject and Message
MailMessage message1 = new MailMessage("msg1@from.com", "msg1@to.com", "Subject1", "message1, how are you?");
MailMessage message2 = new MailMessage("msg1@from.com", "msg2@to.com", "Subject2", "message2, how are you?");
MailMessage message3 = new MailMessage("msg1@from.com", "msg3@to.com", "Subject3", "message3, how are you?");

// create an instance of MailMessageCollection class
MailMessageCollection manyMsg = new MailMessageCollection();
manyMsg.Add(message1);
manyMsg.Add(message2);
manyMsg.Add(message3);

// send emails in bulk
client.Send(manyMsg);

Use C# to Create an ICS Appointment

// create and initialize an instance of the Appointment class
var appointment = new Appointment(
	"Meeting Room 3 at Office Headquarters",// Location
	"Monthly Meeting",                      // Summary
	"Please confirm your availability.",    // Description
	new DateTime(2015, 2, 8, 13, 0, 0),     // Start date
	new DateTime(2015, 2, 8, 14, 0, 0),     // End date
	"from@domain.com",                      // Organizer
	"attendees@domain.com");                // Attendees

// save the appointment to disk in ICS format
appointment.Save("output.ics", AppointmentSaveFormat.Ics);

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

.NET Email API

Aspose.Email for .NET allows you to work with MIME messages, appointments, Microsoft Outlook® items, Outlook storage files, various clients & protocols (SMTP, POP3, IMAP, Exchange EWS, Exchange WebDav, Gmail, Thunderbird, Zimbra, IBM Notes & AMP HTML emails and more.

Email API Features

  • Open or save emails in Microsoft Outlook & other formats.
  • Conversion of email files to various formats.
  • Parse, read & save MS Outlook emails, PST & OST files.
  • Comprehensive support for MIME messages.
  • Send & receive emails via POP3, IMAP, Microsoft Exchange Server.
  • Send emails in bulk while performing mail merge via various types of data sources.
  • Send iCalendar compliant messages.
  • Consume and produce recurrence patterns in the iCalendar (RFC 2445) format.
  • Tools to verify email addresses, email syntax, email domain, mail server & MX records.
  • Extract objects from various mail storage formats as well as create email storage files from scratch.

New Features in Version 20.5

  • Added support for Email Threading using ImapClient.

Enhancements in Version 20.5

  • IEWSClient: Get folder info by path.

For the detailed notes, please visit Aspose.Email for .NET 20.5 Release Notes.

Read & Write Email Formats

Microsoft Outlook: MSG, PST, OST, OFT
Email: EML, EMLX, MBOX
Others: ICS, VCF, HTML, MHTML

Read Email Formats

Mac Outlook: OLM

Platform Independence

Aspose.Email for .NET is implemented using Managed C# and can be used with any .NET based languages including C#, VB.NET, J# and so on. Aspose.Email for .NET can be integrated with any kind of application on Windows, Linux, Mac OS X and Xamarin Platforms.

Getting Started with Aspose.Email for .NET

Are you ready to give Aspose.Email for .NET a try? Simply execute Install-Package Aspose.Email from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Email for .NET and want to upgrade the version, please execute Update-Package Aspose.Email to get the latest version.

Create an Email Message & Save it in MSG Format using C# Code

You can execute below code snippet to see how Aspose.Email API performs in your environment or check the GitHub Repository for other common usage scenarios.

// create an instance of the MailMessage class
var message = new MailMessage();
// set from, to, subject and body properties
message.From = "sender@domain.com";
message.To = "receiver@domain.com";
message.Subject = "This is test message";
mamessageilMsg.Body = "This is test body";
// create an instance of the MapiMessage class and pass object of MailMessage as argument
var msg = MapiMessage.FromMailMessage(message);
// save file on disc
msg.Save(dir + "output.msg");

Send Bulk Emails via SMTP

// create SmtpClient as client and specify server, port, user name and password
SmtpClient client = new SmtpClient("mail.server.com", 25, "Username", "Password");

// create instances of MailMessage class and Specify To, From, Subject and Message
MailMessage message1 = new MailMessage("msg1@from.com", "msg1@to.com", "Subject1", "message1, how are you?");
MailMessage message2 = new MailMessage("msg1@from.com", "msg2@to.com", "Subject2", "message2, how are you?");
MailMessage message3 = new MailMessage("msg1@from.com", "msg3@to.com", "Subject3", "message3, how are you?");

// create an instance of MailMessageCollection class
MailMessageCollection manyMsg = new MailMessageCollection();
manyMsg.Add(message1);
manyMsg.Add(message2);
manyMsg.Add(message3);

// send emails in bulk
client.Send(manyMsg);

Use C# to Create an ICS Appointment

// create and initialize an instance of the Appointment class
var appointment = new Appointment(
	"Meeting Room 3 at Office Headquarters",// Location
	"Monthly Meeting",                      // Summary
	"Please confirm your availability.",    // Description
	new DateTime(2015, 2, 8, 13, 0, 0),     // Start date
	new DateTime(2015, 2, 8, 14, 0, 0),     // End date
	"from@domain.com",                      // Organizer
	"attendees@domain.com");                // Attendees

// save the appointment to disk in ICS format
appointment.Save("output.ics", AppointmentSaveFormat.Ics);

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

Release Notes

https://docs.aspose.com/display/emailnet/Aspose.Email+for+.NET+20.5+Release+Notes

Showing the top 1 GitHub repositories that depend on Aspose.Email:

Repository Stars
aspose-words/Aspose.Words-for-.NET
Aspose.Words for .NET examples, plugins and showcases

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
20.5.0 124 5/30/2020
20.4.0 1,901 4/30/2020
20.3.0 3,099 3/31/2020
20.2.0 6,642 2/27/2020
20.1.0 3,688 1/30/2020
19.12.0 3,735 12/27/2019
19.11.0 3,065 11/29/2019
19.10.0 6,689 10/30/2019
19.9.0 11,022 9/28/2019
19.8.0 11,585 8/28/2019
19.7.0 5,326 7/30/2019
19.6.0 4,260 6/29/2019
19.5.0 2,607 6/1/2019
19.4.0 4,213 4/26/2019
19.3.0 3,536 3/29/2019
19.2.0 5,881 2/27/2019
19.1.1 5,155 2/4/2019
19.1.0 1,087 1/31/2019
18.12.0 15,174 12/25/2018
18.11.0 4,978 11/29/2018
18.10.0 4,035 10/24/2018
18.9.0 2,808 9/27/2018
18.8.0 4,447 8/27/2018
18.7.0 7,106 7/27/2018
18.6.0 4,999 6/27/2018
18.5.1 2,481 5/25/2018
18.4.0 5,994 4/26/2018
18.3.0 2,415 3/24/2018
18.2.0 7,298 2/21/2018
18.1.0 5,725 1/18/2018
17.12.0 5,649 12/18/2017
17.11.0 9,640 11/14/2017
17.10.0 12,046 10/9/2017
17.9.0 4,774 9/11/2017
17.8.0 6,493 8/8/2017
17.7.0 3,547 7/7/2017
17.6.0 1,819 6/8/2017
17.5.0 3,062 5/9/2017
17.4.0 25,017 4/7/2017
17.3.0 2,278 3/23/2017
17.2.0 4,523 2/16/2017
17.1.0 10,038 1/17/2017
16.12.0 69,397 12/19/2016
16.11.0 1,622 11/10/2016
16.10.0 4,563 10/10/2016
6.9.0 6,115 9/9/2016
6.8.0 9,028 8/10/2016
6.7.0 18,183 7/8/2016
6.6.0 5,785 6/4/2016
6.5.0 2,128 5/6/2016
6.4.0 13,473 4/11/2016
6.3.0 4,749 3/7/2016
6.2.0 20,244 2/5/2016
6.1.0 4,744 12/31/2015
6.0.0 2,029 12/7/2015
5.9.1 796 11/26/2015
5.9.0 4,196 11/5/2015
5.8.0 27,314 10/7/2015
5.7.0 2,367 9/8/2015
5.6.0 20,323 8/8/2015
5.5.0 12,095 7/9/2015
5.4.0 2,153 6/9/2015
5.3.0 1,889 5/5/2015
5.2.0 1,869 4/6/2015
5.1.0 1,129 3/10/2015
5.0.0 1,446 2/9/2015
4.9.0 1,492 1/4/2015
4.8.0 1,605 12/4/2014
4.7.0 1,666 11/3/2014
4.6.0 895 10/6/2014
4.5.0 3,192 9/4/2014
4.4.0 10,960 7/30/2014
4.3.0 4,543 7/2/2014
4.2.0 1,097 6/2/2014
4.1.0 1,172 5/2/2014
4.0.0 4,034 3/28/2014
3.9.0 1,676 3/2/2014
3.8.0 1,547 1/28/2014
3.7.0 4,850 12/30/2013
3.6.0 3,700 11/27/2013
3.5.0 887 11/1/2013
3.4.0 842 10/1/2013
3.3.0 967 8/26/2013
3.2.0 877 7/29/2013
3.1.0 965 6/27/2013
3.0.0 1,530 5/29/2013
2.9.0 1,285 4/29/2013
2.8.0 1,237 3/26/2013
2.7.0 1,097 2/27/2013
2.6.0 1,096 1/28/2013
2.5.0 919 12/26/2012
2.4.0 898 11/27/2012
2.3.0 2,527 10/30/2012
2.2.0 990 9/27/2012
2.1.0 4,635 8/29/2012
2.0.0 976 7/30/2012
1.9.0 1,203 6/28/2012
1.8.0 1,012 5/27/2012
1.7.1 898 5/9/2012
1.7.0 813 4/29/2012
1.6.0 844 3/26/2012
1.5.0 900 2/24/2012
1.4.0.1 867 2/16/2012
1.4.0 1,286 2/2/2012
1.3.0 895 1/24/2012