MailMessageCc Property
Gets or sets the list of carbon copy (CC) recipients of the message.

Namespace: MailBee.Mime
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public EmailAddressCollection Cc { get; set; }

Property Value

Type: EmailAddressCollection
An EmailAddressCollection object containing a collection of e-mail addresses of carbon copy recipients of the message. The default value is an empty collection.
MailBeeInvalidArgumentExceptionvalue is a null reference (Nothing in Visual Basic).
To specify Cc as a string, set msg.Cc.AsString value (assuming msg is MailMessage instance).

If it's necessary to add some hidden recipients that should not be displayed in the mail message, the developer should use the Bcc property.

This sample loads the message from .EML file and displays the e-mail addresses of CC recipients.
using System;
using MailBee;
using MailBee.Mime;

class Sample
    static void Main(string[] args)
        // Load the message from file.
        MailMessage msg = new MailMessage();

        Console.WriteLine("The list of CC recipients of the message:");

        // For each carbon copy recipient...
        foreach (EmailAddress adr in msg.Cc)
            // e-mail address.
See Also