Add Method (Recipients Object)
Applies To
Recipients collection object.
Description
Creates a new recipient in the Recipients collection, and returns the new recipient as a Recipient object.
Syntax
expression.Add(Name)
expression An expression that returns a Recipients object.
Name Required String. The display name of the recipient.
Example
This example creates a new mail message and adds "Allison Klein" as a To recipient.
Set myItem = myOlApp.CreateItem(olMailItem)
Set myRecipient = myItem.Recipients.Add("Allison Klein")
This is the same example, but the recipient is changed from the default (To) to carbon copy (CC).
Set myItem = myOlApp.CreateItem(olMailItem)
Set myRecipient = myItem.Recipients.Add("Allison Klein")
Set myRecipient.Type = olCC