public function sendSms(Sms $sms) { $recipient = $sms->getRecipient(); $recipient = str_replace(array('-', ' '), '', $recipient); $message = mb_convert_encoding($sms->getMessage(), 'UTF-8', 'ISO-8859-1'); $request = new \stdClass(); $request->User = $this->getUsername(); $request->Password = $this->getPassword(); $request->Recipient = $recipient; $request->Sender = ''; $request->SMSText = $message; $request->SmsTyp = 'Standard'; $request->SendDate = ''; return $this->sendClient->SendSimpleSMS($request); }