#!/usr/bin/php
<?php
include 'IntelliSMS.php';

array_shift($argv);     // ignore program name

$type = array_shift($argv);
$toAddr = array_shift($argv);
$message = implode(" ", $argv);

$fromAddr = "MinervaHome";

$objIntelliSMS = new IntelliSMS();
$objIntelliSMS->Username = 'MyUserName';
$objIntelliSMS->Password = 'MyPassword';
$objIntelliSMS->MaxConCatMsgs = 1;

$result = $objIntelliSMS->SendMessage($toAddr, $message, $fromAddr);
?>
