Sending a Message
The general approach to sending a message is as follows (details are in the examples below)
- Log on to MAPI to get a session handle
- Fill a MAPIMessage variable with the message text, subject, number of recipients, and number of attachments
- Fill an array of MAPIRecip variables with each recipient of the message
- Fill an array of MAPIFile variables with details about each attachment
- Call MAPISendMessage passing the session handle, MAPIMessage, MAPIRecip(), and MAPIFile() variables as arguments
- Log off MAPI