MailMessage.Cc Property

Definition

Gets or sets a semicolon-delimited list of email addresses that receive a carbon copy (CC) of the email message. Recommended alternative: System.Net.Mail.

C#
public string Cc { get; set; }

Property Value

A semicolon-delimited list of email addresses that receive a carbon copy (CC) of the email message.

Examples

C#
MailMessage MyMessage = new MailMessage();
MyMessage.Cc = "fred@contoso.com";

Remarks

Recipients in the semicolon-delimited list can be either email addresses or address book display names.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1