Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public EmailAddressCollection Cc { get; set; }
Public Property Cc As EmailAddressCollection
Get
Set
Property Value
Type:
EmailAddressCollectionThe
EmailAddressCollection object representing CC: field (carbon recipients) of the message.
Remarks This property is equivalent to
Cc property of
Message object.
Examples Setting CC: recipients using different methods.
using System;
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;
Smtp mailer = new Smtp();
mailer.Cc.AsString = "Bill Smith <bsmith@company.com>, kathy@mail.com, \"John Long, Jr.\" <jl@domain.com>";
mailer.Cc.Add("email@address.com");
mailer.Cc.Add("John Doe, Sales Manager", "jdoe@domain.com");
mailer.Cc.Add(new EmailAddress("user@host.com"));
Console.WriteLine(mailer.Cc.ToString());
"Bill Smith" <bsmith@company.com>, kathy@mail.com, "John Long, Jr." <jl@domain.com>, email@address.com, "John Doe, Sales Manager" <jdoe@domain.com>, user@host.com
Imports MailBee
Imports MailBee.SmtpMail
Imports MailBee.Mime
Dim mailer As New Smtp
mailer.Cc.AsString = "Bill Smith <bsmith@company.com>, kathy@mail.com, ""John Long, Jr."" <jl@domain.com>"
mailer.Cc.Add("email@address.com")
mailer.Cc.Add("John Doe, Sales Manager", "jdoe@domain.com")
mailer.Cc.Add(New EmailAddress("user@host.com"))
Console.WriteLine(mailer.Cc.ToString())
"Bill Smith" <bsmith@company.com>, kathy@mail.com, "John Long, Jr." <jl@domain.com>, email@address.com, "John Doe, Sales Manager" <jdoe@domain.com>, user@host.com
See Also