SmtpBcc Property
Gets or sets EmailAddressCollection object specifying BCC: recipients of the message.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public EmailAddressCollection Bcc { get; set; }

Property Value

Type: EmailAddressCollection
The EmailAddressCollection object representing BCC: field (blind-carbon recipients) of the message.
Remarks
This property is equivalent to Bcc property of Message object.
Note Note
By default, BCC header is not included into the message being sent. BCC recipients still receive the message, but other recipients have no way of knowing this. If required, the developer can suppress removing BCC header on mail send operation by setting Mime.MailMessage.Builder.RemoveBccOnSend property to false.
Examples
Setting BCC: recipients using different methods. Since BCC recipients do not appear in the message header, it makes no sense to include recipients display names into BCC (unless RemoveBccOnSend is false). If display name is included in BCC e-mail address, it's just ignored.
// To use the code below, import these namespaces at the top of your code.
using System;
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;

// The actual code (put it into a method of your class).

Smtp mailer = new Smtp();

mailer.Bcc.AsString = "<bsmith@company.com>, kathy@mail.com";
mailer.Bcc.Add("email@address.com");
mailer.Bcc.Add(new EmailAddress("user@host.com"));

Console.WriteLine(mailer.Bcc.ToString());

// The output.
<bsmith@company.com>, kathy@mail.com, email@address.com, user@host.com
See Also