OnProgressChange Event
Fires when the sending progress changed.
Syntax
EmailJob.OnProgressChange = handler
|
Parameters
current |
Long value that contains the current progress. |
max |
Long 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 top