Load & Parse Outlook MSG Files

Aspose.Email for C++ provides powerful tools for reading and analyzing Microsoft Outlook message files (.msg). The MapiMessage class is used to load and parse MSG files, giving access to message details such as subject, sender, body, recipients, and attachments. You can load messages directly from a file or from a memory stream, depending on your application needs.

Load MSG Files from Disk

The following example demonstrates how to load a .msg file from the local file system and access its basic properties such as subject, sender, body, and attachments.

Load MSG Files from Stream

You can also load Outlook MSG files from a data stream, which is especially useful when working with in-memory data or email files stored in a database.