MAPIEx handles Microsoft Outlook elements as messages, folders, contacts and appointments through Extended MAPI (Message API).
With MAPIEx you can check email folders, open and save emails including images and attachments, create contacts or delete emails and folders. Many simple examples are included in MAPIEx_demo package.
MAPIEx is a wrapper of Noel Dillabough CMAPIEx library It contains code from Lucian Wischik MAPI Utils.
The main changes in relationship with original code have been:
"new" and "delete" are not necessary in user program. No heap errors are expected as now all user variables are in the stack. In addition internal use of heap has been reduced.
The library interface from user point of view has been simplified. GetContents() and GetHierarchy() use is now private.
To improve compatibility CString and TCHAR have been removed. They have been substituted by String.
MAPIEx classes are:
There is a News and changes log, License and a ToDo list.
Compiler support and Requirements
As MAPIEx uses internal Microsoft infrastructure, it can only work with Outlook installed.
MAPIEx has been tested with MSC and MinGW.
MAPIEx compiled in 32 bits can only work with Outlook 32 bits, and the same happens with 64 bits. Mixing version of different bits will raise a window like this:
If your compiler does not include MAPI header files (MinGW, MSC 12) they can be downloaded from this Microsoft Outlook link.
If this link does not serve you, you can also copy the files in MAPIEx/include_MINGW32 to compiler include folder.