Mail CCs Collection

The Mail.CCs collection contains the list of receivers displayed in the CC: field of an email message. The collection can be used to determine the value of a specific CC item, or to iterate through the collection and retrieve a list of all CC items. See the Collection Object for standard collection properties and methods.

Syntax

Item = Mail.CCs(key|index)

Parameters
key
The identifier for the item to return.
index
An index offset indicating which item in the list to return. The index starts at 0
Return Value

Returns a Variant of type String.

Remarks

The CCs collection contains the list of email address that will be displayed in the CC: field of an email message, where as the Receivers collection contains the list of receivers that will actually receive the message.

Example

The following example adds a CC: and a BCC: receiver to the mail message

Sub Mail_OnStartRender
    Mail.CCs.Add "ceo@emilltest.com"
    Mail.Receivers.Add "ceo@emilltest.com"
    Mail.Receivers.Add "spy@emilltest.com"
End Sub

Applies To

Mail Object

See Also

Tos, Receivers, Collection Object



©2001-2015 eMill. All trademarks property of their owners.