C++ APIs to manipulate Email Messages

Create, read, edit or convert email formats including MSG, EML, EMLX & MHT.

  Download Free Trial
Aspose.Email for C++

Aspose.Emailfor C++

 
 

Aspose.Email for C++ is a suite of class libraries brought together to produce a powerful email programming API that makes it easier to work with a number of email message formats such as MSG, EML, EMLX and MHT.

Aspose.Email for C++ enables the application developers to create, manipulate or convert most commonly used email message formats within the native C++ applications, without relying on Office Automation or Microsoft Outlook application. You can use the API for its basic email management features such as message content editing, manipulation of recipients, MAPI properties and attachments as well as for the advanced features such as management of the message storage files including PST & OST.

 

Advanced Email Processing API Features

 

 

Load messages from file or stream

 

Save messages to file or stream

 

File format conversion

 

Create and update tasks using iCalendar

 

Manipulate message storage files

 

Create recurrence patterns according to iCalendar RFC

 

Attach embedded objects and attachments to emails

 

Include text and HTML mail body

 

Create customized mail headers.

Manage MIME Messages

Aspose.Email for C++ extensively supports MIME message formats including EML & EMLX. This ability allows the developers to create, set & extract contents from the MIME messages, manage attachments & embedded objects, convert EML & EMLX message files to MSG, HTML & MHTML file formats.

Manage Outlook Message File Formats

Aspose.Email for C++ is capable of creating Outlook messages from scratch as well as provides the ability to manipulate existing email files. Developers can load & save all types of Outlook items including contacts, tasks, notes, calendar items & distributions lists. On top of it, the C++ Email Library allows to parse & manipulate all these objects with great ease.

Working with iCalendar API

Aspose.Email for C++provides the capability to create and save Outlook Calendar objects in MSG and ICS formats. Moreover, the API allows you to programmatically produce & consume recurrence patterns in iCalendar (RFC 2445) format via an intuitive object model.

Manage Outlook Storage Files

Aspose.Email for C++ allows you to manage Outlook storage files such as PST & OST. You can perform a number of operations on existing storage files as well as create new PST files from scratch. Possible operations include folder listing, message listing, addition & extraction of messages and contacts.

Create PST & add message to Inbox - C++

// create PST file from scratch       
System::SharedPtr<PersonalStorage> personalStorage = PersonalStorage::Create(dir + L"output.pst", Aspose::Email::Outlook::Pst::FileFormatVersion::Unicode);
// add a folder "Inbox" to the PST
personalStorage->get_RootFolder()->AddSubFolder(L"Inbox");
// select the "Inbox" folder
System::SharedPtr<FolderInfo> inboxFolder = personalStorage->get_RootFolder()->GetSubFolder(L"Inbox");
// add a message to the "Inbox" folder
inboxFolder->AddMessage(MapiMessage::FromFile(dir + L"template.msg"));
 

Support and Learning Resources

 

Aspose.Email offers individual Email APIs for other popular development environments as listed below: