Table of Contents

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

Example

Send an sms

<pre><?
  $res = send_sms("9551885991","Hello, sms");
  if (!$res) {
    print("Failed to send the SMS.");
  }
?></pre>