SendNotificationEMail Method



 
The SendNotificationEMail method sends a notification eMail.


Syntax

    SiteKiosk.Plugins("SiteCash").AccumulatedMoneyStorage.
    SendNotificationEMail(reason, deviceName)
    
Parameters
    reason Long value containing the reason.
    deviceName String containing the name of a device (optional).
Return Value
    None.
Remarks
    If the deviceName parameter is omitted, the notification will include all devices.

    Possible reasons are:

    0 : The total sales reached the configured limit.
    1 : Mail has been sent manually in the runtime administration menu.
    2 : Clearance, the account has been reset.
    3 : A single device's sales reached the configured limit.
    4 : The number of a single device's transactions reached the configured limit.
    5 : The total number of transactions reached the configured limit.
Examples
    The following example sends one notification eMail for all devices.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var AMStorage = SiteKiosk.Plugins("SiteCash").AccumulatedMoneyStorage;
    AMStorage.SendNotificationEMail(1);
    </SCRIPT>
    

Applies to
    SiteKiosk v6.5 (and later versions).

Back to top