/**
  * @param ShortMessageInterface $message
  * @return boolean
  *
  * @throws DeliveryFailedException
  */
 public function send(ShortMessageInterface $message)
 {
     for ($i = 0; $i < $this->retryCount; $i++) {
         $result = false;
         try {
             $result = $this->transport->send($message);
         } catch (DeliveryFailedException $exception) {
             if ($this->logger) {
                 $this->logger->warning($exception->getMessage());
             }
         }
         if ($result === true) {
             return true;
         }
         sleep($this->delay);
     }
     if ($this->logger) {
         $this->logger->error('Delivery try count exceeded');
     }
     return false;
 }
 /**
  * @param ShortMessageInterface $message
  * @return boolean
  *
  * @throws DeliveryFailedException
  */
 public function send(ShortMessageInterface $message)
 {
     $message->setRecipient($this->recipient);
     return $this->transport->send($message);
 }