Recipients Property

Return the number of recipients for the current message.

Syntax

object.Recipients

The object is an expression that evaluates to an InternetMail object. The property returns a long integer value.

Remarks

The Recipients property returns the number of recipients for the current message. This value can be used in conjunction with the Recipient property array to enumerate the recipient e-mail addresses for the current message.

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

Data Type

Integer

See Also

Recipient Property


Copyright © 2008 Catalyst Development Corporation. All rights reserved.