. * * @package phpservermon * @author Michiel van der Wulp * @copyright Copyright (c) 2008-2015 Pepijn Over * @license http://www.gnu.org/licenses/gpl.txt GNU GPL v3 * @version Release: @package_version@ * @link http://www.phpservermonitor.org/ **/ namespace psm\Txtmsg; class FreeVoipDeal extends Core { // ========================================================================= // [ Fields ] // ========================================================================= public $gateway = 1; public $resultcode = null; public $resultmessage = null; public $success = false; public $successcount = 0; public function sendSMS($message) { $local_url = "https://www.freevoipdeal.com/myaccount/sendsms.php"; $local_data = rawurlencode( $message ); foreach( $this->recipients as $phone ){ $result = file_get_contents( $local_url . "?username=" . $this->username . "&password=" . $this->password . "&from=" . $this->originator . "&to=" . $phone . "&text=" . $local_data ); } return $result; } }