Converting Between Formats

Aspose.Email for C++ reads and writes the file formats of email, calendar and contact data, so a file in one format can be turned into another without a mail client. Every conversion follows the same pattern: load the source into an object, then save that object in the target format or add it to a storage.

Object Loads Saves
MailMessage EML, EMLX, MSG, OFT, HTML, MHTML EML, EMLX, MSG, OFT, HTML, MHTML
MapiMessage MSG, OFT, EML MSG, OFT, and through SaveOptions every format MailMessage saves
Appointment / MapiCalendar ICS / MSG calendar items ICS, MSG
MapiContact VCF / MSG contact items VCF, MSG
MboxrdStorageReader / MboxrdStorageWriter MBOX MBOX
PersonalStorage PST, OST PST

Conversion Matrix

Each cell links to the sample for that conversion. Rows are source formats, columns target formats.

From \ To EML EMLX MSG OFT HTML MHTML ICS VCF MBOX PST
EML - ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
MSG ✓ ✓ - ✓ ✓ ✓ ✓ ✓ ✓ ✓
MHTML ✓ ✓ ✓ ✓ - ✓ ✓
HTML ✓ ✓ ✓ - ✓ ✓ ✓
OFT ✓ ✓ - ✓ ✓
ICS ✓ ✓ ✓ - ✓
VCF ✓ ✓ - ✓
MBOX ✓ ✓ ✓ ✓ - ✓
PST / OST ✓ ✓ ✓ ✓ ✓ ✓

Articles in This Section

Other storage formats have conversion articles of their own: OLM to PST, Zimbra TGZ to PST and MBOX to PST with progress reporting.