Edit

Share via


MailDefinition.CC Property

Definition

Gets or sets a comma-separated list of email addresses to send a copy (CC) of the message to.

public:
 property System::String ^ CC { System::String ^ get(); void set(System::String ^ value); };
public string CC { get; set; }
member this.CC : string with get, set
Public Property CC As String

Property Value

A comma-separated list of email addresses to send a copy (CC) of the message to. The default is Empty.

Examples

The following code example sets the CC property to the text entered in a TextBox control on a Web Forms page.

This code example is part of a larger example provided for the MailDefinition class.

md.CC = sourceCC.Text;
md.CC = sourceCC.Text

Remarks

The CC property contains a list of additional recipients of the email message.

If the CC property contains an improperly formed email address, the Send method throws an HttpException exception and the email message is not sent.

Applies to

See also