<< Click to Display Table of Contents >> Navigation: Reference > MailMessage > AddBccRecipient Method |
AddBccRecipient method adds Bcc (invisible) recipient to e-mail message.
Syntax
[Visual Basic]
Sub AddBccRecipient(objMailAddress As AddEmailLib.MailAddress)
Example:
Dim objMailAddress As New AddEmailLib.MailAddress
objMailAddress.Address = "someone@someisp.com"
objMailMessage.AddBccRecipient objMailAddress
[VBScript]
Sub AddBccRecipient(objMailAddress)
Example:
Dim objMailAddress
Set objMailAddress = CreateObject("AddEmail.MailAddress")
objMailAddress.Address = "someone@someisp.com"
objMailMessage.AddBccRecipient objMailAddress
[C#]
void AddBccRecipient(AddEmailLib.MailAddressClass objMailAddress);
Example:
AddEmailLib.MailAddressClass objMailAddress = new AddEmailLib.MailAddressClass();
objMailAddress.Address = "someone@somesp.com";
objMailMessage.AddBccRecipient(objMailAddress);
[C++]
HRESULT AddBccRecipient(IMailAddress* objMailAddress);
Example:
AddEmailLib::IMailAddressPtr spMailAddress;
spMailAddress.CreateInstance(__uuidof(AddEmailLib::MailAddress));
spMailAddress->PutAddress("someone@someisp.com");
spMailMessage->AddBccRecipient(spMailAddress);
Parameters
objMailAddress [in]
Prepared MailAddress object containing e-mail address and name of the recipient.
Return value
None.
Remarks
Use AddBccRecipient 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 not visible, but the message will be sent to Bcc recipients. Application can call AddBccRecipient method more than once to specify more than one Bcc recipient.