AddBcc

Description

Adds the specified Bcc email address and display name.

Applies to

MimeMessage object

Syntax

mimemessage.AddBcc(string bcc{, string displayname})

Argument

Description

mimemessage

A MimeMessage object identifying the email message in which you want to add the Bcc email address and display name.

bcc

A string that contains the Bcc email address.

displayname (optional)

A string that contains the Bcc email display name.


Return value

Integer.

Returns the index number if it succeeds and -1 if email name format is incorrect. If any argument's value is null, the method returns null.

Examples

The following example adds two Bcc email addresses, one of which has the email display name.

lnv_SmtpClient.Message.AddBcc("BccTester1@gmail.com" )
lnv_SmtpClient.Message.AddBcc("BccTester2@gmail.com", "BccTester2Name" )

See also

AddAttachment

AddCc

AddLinkedResource

AddRecipient

GetSender

Reset

SetSender