Example #1
0
 /**
  * send sms using HTTP API, returns XML response
  */
 public static function send($to, $msg)
 {
     $url = Config::sms('url');
     $url .= "?" . implode("&", "action=" . Config::sms('action'), "username="******"password="******"messagetype=" . Config::sms('type'), "recipient=" . Config::sms($to), "messagedata=" . urlencode($msg));
     return file_get_contents($url);
 }