AddBcc

Description

Adds an email address and display name to the "Bcc" field of the email.

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 1 if it succeeds and -1 if an error occurs. 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

AddReplyTo

GetSender

Reset

SetSender