<< Click to Display Table of Contents >> Navigation: Reference > MailMessage > AddCcRecipient Method |
AddCcRecipient method adds recipient to the Cc field of e-mail message.
Syntax
[Visual Basic]
Sub AddCcRecipient(objMailAddress As AddEmailLib.MailAddress)
Example:
Dim objMailAddress As New AddEmailLib.MailAddress
objMailAddress.Address = "someone@someisp.com"
objMailMessage.AddCcRecipient objMailAddress
[VBScript]
Sub AddCcRecipient(objMailAddress)
Example:
Dim objMailAddress
Set objMailAddress = CreateObject("AddEmail.MailAddress")
objMailAddress.Address = "someone@someisp.com"
objMailMessage.AddCcRecipient objMailAddress
[C#]
void AddCcRecipient(AddEmailLib.MailAddressClass objMailAddress);
Example:
AddEmailLib.MailAddressClass objMailAddress = new AddEmailLib.MailAddressClass();
objMailAddress.Address = "someone@somesp.com";
objMailMessage.AddCcRecipient(objMailAddress);
[C++]
HRESULT AddCcRecipient(IMailAddress* objMailAddress);
Example:
AddEmailLib::IMailAddressPtr spMailAddress;
spMailAddress.CreateInstance(__uuidof(AddEmailLib::MailAddress));
spMailAddress->PutAddress("someone@someisp.com");
spMailMessage->AddCcRecipient(spMailAddress);
Parameters
objMailAddress [in]
Prepared MailAddress object containing e-mail address and name of the recipient.
Return value
None.
Remarks
Use AddCcRecipient method to add prepared MailAddress object containing e-mail address and optional name of the recipient of e-mail message. E-mail address and name will appear in the Cc field of the message. Application can call AddCcRecipient method more than once to have more than one recipient in the Cc field.