User Tools

Site Tools


uphp:functions:send_sms

send_sms

WMPRO, WMMINI FW >= 1.1094 WMMEGA FW >= 2.1094

Send an SMS through a USB cellular dongle

Description

int send_sms ( string $number , string $message )

This function attempts to send an SMS using a connect cellular dongle. This assumes that the dongle has already been recognized by Wattmon and that it has established a CDC connection. This will disconnect any Internet session (TCP/IP or otherwise), send the SMS and then restart the dongle.

Parameters

$number: Valid phone number

$message: Message to be sent as SMS

Return Values

  • Integer 1 for success and 0 for error

Example

Send an sms

<pre><?
  $res = send_sms("9551885991","Hello, sms");
  if (!$res) {
    print("Failed to send the SMS.");
  }
?></pre>
uphp/functions/send_sms.txt · Last modified: 2021/09/13 05:57 (external edit)