MapiGetMessageRecipient Function

Action

Retrieves information about a message recipient. Getting the property value of MAPI_PROP_MSG_RECIPIENT_COUNT will retrieve the number of recipients. The recipient ID's are 0 based.

Include

Mapi.bdh

Syntax

MapiGetMessageRecipient( in hMessage             : number, 
                         in nRecipientID         : number, 
                         in bNameOrAddress       : boolean, 
                         in sRecipient: string ) : boolean;
Parameter Description
hMessage Valid MAPI Message Handle
nRecipientID ID of the recipient that should be retrieved. This needs to be a value between 0 and MAPI_PROP_MSG_RECIPIENT_COUNT-1. The ID is 0 based! So - the first recipient has ID 0 - the second one 1, …
bNameOrAddress True to retrieve the name of the recipient. False to retrieve the address of the recipient
sRecipient Recipient's name or address

Return value

  • true if successful
  • false otherwise

Exmple

See MAPI Sample