SendTextMessage Method



 
The SendTextMessage method sends a short text message.


Syntax

    [boolean=] SiteKiosk.Plugins("SitePhone").
               SendTextMessage(number, message)
    
Parameters
    number String that specifies the destination phone number.
    message String that specifies the contens of the message.
Return Value
    Returns a Boolean that is true if the message was send successfully and false if not.
Remarks
    None.
Examples
    The following example sends a "Hello world!" short message to (918) 555-5000 and alerts whether it has been sent successfully.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    if (SiteKiosk.Plugins("SitePhone").SendTextMessage("+1 918 555 5000",
       "Hello world!"))
       alert("Your message has been sent successfully.");
    else
       alert("Your message has not been sent. Maybe the destination is
          not eligible to retrieve text messages.");
    </SCRIPT>
    

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

Back to top