Skip to content

RecipientAddress - cMapiHandler

Returns the N-th recipient address

Type: Function
Return Data Type: String

Parameters

Parameter Type Description
iRecipient Integer The N-th recipient of the message

Syntax

Function RecipientAddress Integer iRecipient Returns String

Call Example

Get RecipientAddress iRecipient to StringVariable

Description

The RecipientAddress function returns the N-th recipient address. The value of N must be passed via iRecipient.

Example

Get piMessageRecipCount Of oMapiSession To iRecipCount
For iCounter From 1 To iRecipCount
   Get RecipientAddress Of oMapiSession iCounter To sRecipientAddress

Return Value

The address of the N-th recipient