Description
Adds an email address and display name to the "Cc" field of the email.
Applies to
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 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 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