Description
Sends a text message to a specified phone number.
Syntax
runner_sms($number, $message)
Arguments
$number
a phone number.
$message
a text message.
Return value
An array with the following keys:
•success: (true or false) indicates whether the sms was sent or not.
•error: an error message in case the sms was not sent.
Example
Send an sms to a phone number. Make sure you have specified SMS settings first.
$number="+12345678901";
$message="You verification code";
$arr = runner_sms($number, $message);
if (!$arr["success"]) {
echo ($arr["error"]);
}
See also: