Aspose.Email.Cpp 20.8.1

Aspose.Email for C++ is a native C++ library that enables C++ developers to create, manipulate and convert Outlook and other popular emailing file formats. The API is independent of Office Automation or MS Outlook, and doesn't need these to be installed on the server.
The API can be used on Windows OS for working with emailing file formats.
Developers can use the API to transmit messages via a number of popular protocols like POP3, IMAP, SMTP

There is a newer version of this package available.
See the version list below for details.
Install-Package Aspose.Email.Cpp -Version 20.8.1
dotnet add package Aspose.Email.Cpp --version 20.8.1
<PackageReference Include="Aspose.Email.Cpp" Version="20.8.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Email.Cpp --version 20.8.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

C++ Email Parsing Library

Nuget Nuget

Aspose.Email for C++ enables your C++ applications to work with various Outlook® objects including messages, tasks, contacts, calendar, and journal items.

Email File Processing Features

Read & Write Email Formats

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

Read-Only Email Formats

Microsoft Outlook: OLM

Getting Started with Aspose.Email for C++

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

Create New Message & Save in EML & MSG Formats

Try executing the below code snippet to see how Aspose.Email for C++ performs in your environment. You may also check the GitHub Repository for other common usage scenarios.

The following code sample shows how to create a new email message and save it in EML & MSG formats using C++.

// create a new instance of MailMessage class
System::SharedPtr<MailMessage> message = System::MakeObject<MailMessage>();

// set subject of the message
message->set_Subject(u"New message created by Aspose.Email for .NET");

// set HTML body
message->set_IsBodyHtml(true);
message->set_HtmlBody(u"<b>This line is in bold.</b> <br/> <br/><font color=blue>This line is in blue color</font>");

// set sender information
message->set_From(u"from@domain.com");

// add TO recipients
message->get_To()->Add(u"to1@domain.com");
message->get_To()->Add(u"to2@domain.com");

// add CC recipients
message->get_CC()->Add(u"cc1@domain.com");
message->get_CC()->Add(u"cc2@domain.com");

// save message in EML, MSG and MHTML formats
message->Save(dir + u"output.eml", Aspose::Email::SaveOptions::get_DefaultEml());
message->Save(dir + u"output.msg", Aspose::Email::SaveOptions::get_DefaultMsgUnicode());

Send Email via Exchange EWS Client using C++

// create instance of IEWSClient class by giving credentials
System::SharedPtr<IEWSClient> client = GetExchangeEWSClient(GetExchangeTestUser());

// create an instance of type MailMessage
System::SharedPtr<MailMessage> msg = System::MakeObject<MailMessage>();
msg->set_From(MailAddress::to_MailAddress(u"sender@domain.com"));
msg->set_To(MailAddressCollection::to_MailAddressCollection(u"recipient@ domain.com "));
msg->set_Subject(u"Sending message from exchange server");
msg->set_HtmlBody(u"<h3>sending message from exchange server</h3>");

// send the message
client->Send(msg);

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

C++ Email Parsing Library

Nuget Nuget

Aspose.Email for C++ enables your C++ applications to work with various Outlook® objects including messages, tasks, contacts, calendar, and journal items.

Email File Processing Features

Read & Write Email Formats

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

Read-Only Email Formats

Microsoft Outlook: OLM

Getting Started with Aspose.Email for C++

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

Create New Message & Save in EML & MSG Formats

Try executing the below code snippet to see how Aspose.Email for C++ performs in your environment. You may also check the GitHub Repository for other common usage scenarios.

The following code sample shows how to create a new email message and save it in EML & MSG formats using C++.

// create a new instance of MailMessage class
System::SharedPtr<MailMessage> message = System::MakeObject<MailMessage>();

// set subject of the message
message->set_Subject(u"New message created by Aspose.Email for .NET");

// set HTML body
message->set_IsBodyHtml(true);
message->set_HtmlBody(u"<b>This line is in bold.</b> <br/> <br/><font color=blue>This line is in blue color</font>");

// set sender information
message->set_From(u"from@domain.com");

// add TO recipients
message->get_To()->Add(u"to1@domain.com");
message->get_To()->Add(u"to2@domain.com");

// add CC recipients
message->get_CC()->Add(u"cc1@domain.com");
message->get_CC()->Add(u"cc2@domain.com");

// save message in EML, MSG and MHTML formats
message->Save(dir + u"output.eml", Aspose::Email::SaveOptions::get_DefaultEml());
message->Save(dir + u"output.msg", Aspose::Email::SaveOptions::get_DefaultMsgUnicode());

Send Email via Exchange EWS Client using C++

// create instance of IEWSClient class by giving credentials
System::SharedPtr<IEWSClient> client = GetExchangeEWSClient(GetExchangeTestUser());

// create an instance of type MailMessage
System::SharedPtr<MailMessage> msg = System::MakeObject<MailMessage>();
msg->set_From(MailAddress::to_MailAddress(u"sender@domain.com"));
msg->set_To(MailAddressCollection::to_MailAddressCollection(u"recipient@ domain.com "));
msg->set_Subject(u"Sending message from exchange server");
msg->set_HtmlBody(u"<h3>sending message from exchange server</h3>");

// send the message
client->Send(msg);

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

Release Notes

https://docs.aspose.com/display/emailcpp/Aspose.Email+for+CPP+20.8.1+Release+Notes

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Aspose.Email.Cpp:

Package Downloads
Aspose.Total.Cpp
Aspose.Total for C++ is a complete package of C++ libraries specifically designed to create, manipulate and convert popular file formats from Microsoft Office and PDF without requiring Office or Adobe Automation. C++ API package also includes a specialized library to generate and recognize barcode labels from images with advanced features to customize the barcode generation and recognition process.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
20.10.0 30 11/26/2020
20.9.0 157 10/21/2020
20.8.1 135 9/29/2020
20.8.0 108 9/21/2020
20.7.0 223 8/20/2020
20.6.0 127 8/4/2020
20.5.0 256 6/29/2020
20.4.0 248 5/25/2020
20.3.0 288 4/22/2020
20.2.0 278 3/20/2020
19.9.0 424 10/30/2019
19.3.1 256 9/3/2019
19.3.0 391 4/26/2019
19.2.0 352 3/13/2019
19.1.0 317 2/5/2019
18.11.0 386 11/27/2018
18.8.0 401 9/14/2018
18.6.1 517 7/11/2018