MailMill .NET Class Library

Mail.Ccs Property

Gets an EmailArray object that contains the carbon copy recipients.

public EmailArray Ccs {get;}

Remarks

The Ccs EmailArray object contains the list of email addresses that will be displayed in the CC message field. Use the Add method to append an email address to the Ccs EmailArray. Use the Value property to get or set a comma separated string containing email addresses.

Example

This sample shows how to fill the Ccs EmailArray.

Mail oMail = new Mail();
oMail.Ccs.Value = "Marie <marie@emilltest.com>, "Sales Department" <sales@emilltest.com>";
oMail.Ccs.Add("John <john@emilltest.com>");
oMail.Ccs.Add(Mail.CreateEmailAddress("George Sabathé", "george@emilltest.com"));

See Also

Mail Class | MailMill Namespace | EmailArray | EmailArray.Add | EmailArray.Value