AddBCCRecipient Method



 
The AddBCCRecipient method adds a hidden recipient.


Syntax

    EmailJob.AddBCCRecipient(adr, name_opt)
Parameters
    adr String that specifies the address of the hidden recipient.
    name_opt String that specifies the name of the hidden recipient (optional).
Return Value
    None.
Remarks
    Rather than being able to see the name or address of other recipients, BCC recipients can only see the name and address of the sender.
Examples
    The following example sends an email to hidden recipients.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    mymail = SiteKiosk.Email.CreateJob(false);
    mymail.POPServer = "mypopserver.com";
    mymail.POPPort = 110;
    mymail.Username = "myusername";
    mymail.Password = "mypassword";
    mymail.SMTPServer = "mysmtpserver.com";
    mymail.SMTPPort = 25;
    mymail.Authentication = 2;
    mymail.SetSender("me@myserver.com", "My name");
    mymail.AddRecipient("recipient@server.com");
    mymail.AddBCCRecipient("hiddenrecipient@server.com");
    mymail.Subject = "This is the subject.";
    mymail.PlainBody = "This is the content.";
    mymail.Send(0, false, true);
    </SCRIPT>

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top