public static function SendSMS($phone, $text) { $ttext = CArkaMisc::GetInTranslit($text); $sms = new SMSClient('380965468079', 'arkaportal2015'); $sms->addSMS('arka.info', $phone, $ttext, 0, 0, 1); $sms->send(); return $sms; }
public function sendSMS($phones, $text) { $client = new SMSClient($this->login, $this->password); $sessionID = $client->getSessionID(); try { $client->send("" . $this->sender . "", "{$phones}", "{$text}"); } catch (SMSError_Exception $e) { return $e; } }