Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public EmailAddressCollection Bcc { get; set; }
Public Property Bcc As EmailAddressCollection
Get
Set
Property Value
Type:
EmailAddressCollectionThe
EmailAddressCollection object representing BCC: field (blind-carbon recipients) of the message.
Remarks
This property is equivalent to
Bcc property of
Message object.
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.
using System;
using MailBee;
using MailBee.SmtpMail;
using MailBee.Mime;
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());
<bsmith@company.com>, kathy@mail.com, email@address.com, user@host.com
Imports MailBee
Imports MailBee.SmtpMail
Imports MailBee.Mime
Dim mailer As 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())
<bsmith@company.com>, kathy@mail.com, email@address.com, user@host.com
See Also