composeSMS

Sends an SMS text to one or more phone numbers.

Syntax

ui.Interface.frontCall("mobile", "composeSMS",
  [ recipients, content ],
  [ result ] )
  • recipients - A list of phone numbers, separated by commas. While the list uses commas to separate the phone numbers in the list, the list itself is enclosed in a single set of quotes.
  • content - The SMS message.
  • result - Holds a status message.

Usage

The "composeSMS" front call sends an SMS text to one or more phone numbers.

Consider using global phone numbers with a + plus sign, as described in [RFC3966].

The returned result string can take one of the following values:
  • "ok": The SMS was send.
  • "cancel": The SMS was canceled.
  • "failed": The SMS could not be sent.

Error -6333 is raised, if there is no permission to compose an SMS on the mobile phone.

Example

DEFINE result STRING
CALL ui.Interface.frontCall("mobile", "composeSMS",
     ["+332781211,+339956789", "This is the SMS text"],
     [result])