CC Property (EmailAdapter Object)

Microsoft Office InfoPath

CC Property (EmailAdapter Object)

Returns or sets a string that represents the carbon copy (CC) recipients for the e-mail message associated with an EmailAdapter object.

expression.CC

expression    Required. An expression that returns a reference to an EmailAdapter object.

Security Level

2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Remarks

The value must be a semicolon-delimited string that can be resolved into a list of valid e-mail addresses by the user's e-mail client.

Note  This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.

Example

This example shows how to use the CC property of an instance of the EmailAdapter object to change the CC recipients before the EmailAdapter object is submitted:

objEmailAdapter.CC = oEmailAdapter.CC + "; [email protected]";