AddCc

Description

Adds the specified Cc email address and display name.

Applies to

MimeMessage object

Syntax

mimemessage.AddCc(string cc{, string displayname})

Argument

Description

mimemessage

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

cc

A string that contains the Cc email address.

displayname (optional)

A string that contains the Cc 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 Cc email addresses, one of which has the email display name.

lnv_SmtpClient.Message.AddCc("CcTester1@gmail.com" )
lnv_SmtpClient.Message.AddCc("CcTester2@gmail.com", "CcTester2Name " )

See also

AddAttachment

AddBcc

AddLinkedResource

AddRecipient

GetSender

Reset

SetSender