Send Method



 
The Send method sends the email.


Syntax

    EmailJob.Send(timeout, sync, requestconnection)
Parameters
    timeout Long value that specifies the timeout period.
    sync Boolean value that specifies if the method should run synchronously or not.
    requestconnection Boolean value that specifies if a connection should be established if offline.
Return Value
    None.
Remarks
    None.
Examples
    The following example sends an email.

    <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.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