This documentation is archived and is not being maintained.

MailMessage.Bcc Property

Gets or sets a semicolon-delimited list of email addresses that receive a blind carbon copy (BCC) of the e-mail message.

[Visual Basic]
Public Property Bcc As String
[C#]
public string Bcc {get; set;}
[C++]
public: __property String* get_Bcc();
public: __property void set_Bcc(String*);
[JScript]
public function get Bcc() : String;
public function set Bcc(String);

Property Value

A semicolon-delimited list of e-mail addresses that receive a blind carbon copy (BCC) of the e-mail message.

Remarks

Recipients in the semicolon-delimited list can be either email addresses or address book display names.

The primary and carbon copy (Cc) recipients do not see the addresses in the Bcc field.

Example

[Visual Basic] 
Dim MyMessage As MailMessage = New MailMessage()
MyMessage.Bcc = "wilma@contoso.com"

[C#] 
MailMessage MyMessage = new MailMessage();
MyMessage.Bcc = "wilma@contoso.com";

[C++] 
MailMessage* MyMessage = new MailMessage();
MyMessage->Bcc = S"wilma@contoso.com";

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

MailMessage Class | MailMessage Members | System.Web.Mail Namespace

Show: