Recipient Property  
 

Return the address of a message recipient.

Syntax

object.Recipient(index)

Remarks

The Recipient property array returns the email address of one of the recipients of the current message, as specified by the index argument. This property enables an application to enumerate all of the recipient addresses for the current message without having to parse the individual To, Cc and Bcc property values. Note that this property array is read-only; to change the recipients for the current message you must set the To, Cc or Bcc properties.

The index argument specifies which address to return, with a base value of zero up to the number of recipients.

The string returned by the Recipient property contains only the actual email address and does not include the name of the recipient or any comments that may have been included with the address. For example, if the To property is set to "John Doe <jdoe@company.com>" then the Recipient property would return a value of "jdoe@company.com" for that address.

Data Type

String

Example

The following example enumerates all of the recipients for the current message and adds them to a listbox:

    For nIndex = 0 To InternetMail1.Recipients
        List1.AddItem InternetMail1.Recipient(nIndex)
    Next

See Also

Bcc Property, Cc Property, Recipients Property, To Property