# OnStatusTextChange Event Fires when the sending status text changes. Syntax
    EmailJob.OnStatusTextChange = handler
Parameters
status | String that contains the current status text.
Remarks The object that caused the event can be referenced in the event function using "this". Examples The following example shows the current status text when it has been changed.
    <div id="id_status"></div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    function OnStatusTextChange(status)
    {
       id_status.innerHTML = "Status: " + status;
    }
    mymail = SiteKiosk.Email.CreateJob(false);
    mymail.OnStatusTextChange = OnStatusTextChange;
    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