Obtaining MAPI

MAPI may or may not already be on your target users’ systems. It is typically installed during the installation of a MAPI-compatible messaging application such as Microsoft Outlook.[1] If your application’s users don’t have such an application, you may want to distribute MAPI with your application. Microsoft permits this, with certain restrictions. Further information and MAPI itself are available at http://www.microsoft.com/exchange/downloads/intro.htm.

The download available at this URL gives you the MAPI Subsystem and some standard service providers, such as the Personal Folders message store provider and the Personal Address Book address book provider. Note well that if your application requires additional service providers, you’ll have to investigate the licensing requirements of those components before distributing them with your application.

To learn how to obtain CDO, see Chapter 5.

[1] However, when Outlook has been installed in Internet Mail Only (IMO) mode, MAPI is not involved. If your system has Outlook installed in this mode, you must reinstall it in Corporate or Workgroup (CW) mode (that’s one mode, not two) to be able to use the examples in this book. Outlook’s Help About dialog box indicates the mode that has been installed.

Get CDO & MAPI Programming with Visual Basic: now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.