EmailJob Object

The EmailJob object permits sending emails.

Members Table

    This object is returned by the CreateJob method. Use the EmailJob object to send emails.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
    The following example sends an email to a specified address.

    <SCRIPT TYPE="text/javascript">
    mymail = SiteKiosk.Email.CreateJob(false);
    mymail.POPServer = "";
    mymail.POPPort = 110;
    mymail.Username = "myusername";
    mymail.Password = "mypassword";
    mymail.SMTPServer = "";
    mymail.SMTPPort = 25;
    mymail.Authentication = 2;
    mymail.SetSender("", "My name");
    mymail.Subject = "This is the subject.";
    mymail.PlainBody = "This is the content.";
    mymail.Send(0, false, true);

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

Back to top