MAPI Functions

MAPI is composed of a series of functions. The most useful are discussed in this paper. These can be divided into logical groups according to their function as follows:

Logon and Logoff

MAPILogon: logs on to MAPI; returns a session handle

MAPILogoff: logs off of MAPI

Sending Messages

MAPISendMail: Sends a message; offers the most control

MAPISendDocuments: Sends documents; prompts the user for address

MAPIAddress: Prompts the user to address a message

Reading Messages

MAPIFindNext: Locates the next message in the inbox

MAPIReadMail: Reads the contents of the current message

MAPISaveMail: Saves the current message

Deleting Messages

MapiDeleteMail: Deletes the current message

Informational Functions

MAPIResolveName: Displays a dialog to resolve an ambiguous name