SiteKiosk Documentation
One Step Back

OnProgressChange Event




Fires when the sending progress changed.


Syntax

    EmailJob.OnProgressChange = handler
Parameters
    currentLong value that contains the current progress.
    maxLong value that contains the maximum progress.
Remarks
    Fires after each percent of progress until 100 percent are reached.

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example sends an email and shows the current progress.

    <div id="id_progress"></div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    function OnProgressChange(cur, max)
    {
       id_progress.innerHTML = "Progress: " + cur + " of " + max;
    }
    mymail = SiteKiosk.Email.CreateJob(false);
    mymail.OnProgressChange = OnProgressChange;
    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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -