MailEnvelope2.CC Property
Gets or sets the carbon copy (CC) value used in the MailEnvelopeObject object that is associated with a WindowObject object.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Property CC As String
Get
Set
'Usage
Dim instance As MailEnvelope2
Dim value As String
value = instance.CC
instance.CC = value
string CC { get; set; }
Property Value
Type: System.String
The carbon copy (CC) addresses
Implements
Remarks
The values set for the CC property should be a string of valid e-mail addresses. You can specify multiple e-mail addresses by using a semi-colon (";") between each of them.
Important
This member 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.
Examples
The following example sets a reference to the MailEnvelopeObject object, sets envelope properties, and then displays the e-mail envelope.
MailEnvelopeObject myEnv = thisApplication.ActiveWindow.MailEnvelope;
myEnv.To = "someone@example.com";
myEnv.CC = "someone@example.com";
myEnv.BCC = "someone@example.com";
myEnv.Subject = "Test e-mail message";
// Display form with e-mail envelope.
myEnv.Visible = true;