public function sendSMS() { $this->ips = $this->getIPs(); $this->ip = $this->getIP(); $this->host = $this->getHOST(); if ($this->name != "may" && $this->name != "dellirom") { $message = "{$this->name}\r\n"; if ($this->tel) { $message .= "{$this->tel}\r\n"; } $message = substr($message, 0, 60); $mail = new MailHelper(); $mail->clearMails(); $mail->addMail($this->smsMail); $mail->mailSend($this->smsSubject, $message, false); } return true; }