protected function guessRecipient(MessageContract $message)
    {
        if ($recipient = $message->recipient()) {
            return $recipient;
        }

        $swiftMessage = $this->getSwiftMessage($message);

        if (!$to = $swiftMessage->getTo()) {
            return null;
        }

        if (!count($to)) {
            return null;
        }

        return $to[0];
    }
protected function guessRecipient(MessageContract $message)
    {
        if ($recipient = $message->recipient()) {
            return $recipient;
        }

        $swiftMessage = $this->getSwiftMessage($message);

        if (!$to = $swiftMessage->getTo()) {
            return null;
        }

        if (!count($to)) {
            return null;
        }

        return $to[0];
    }
protected function guessRecipient ( MessageContract $ message ) { if ( $ recipient = $ message -> recipient ( ) ) { return $ recipient ; } $ swiftMessage = $ this -> getSwiftMessage ( $ message ) ; if ( ! $ to = $ swiftMessage -> getTo ( ) ) { return null ; } if ( ! count ( $ to ) ) { return null ; } return $ to [ 0 ] ; }
Try to guess the reciepient of the message to add it to the failures.

@param \Ems\Contracts\Mail\Message $message

@return mixed
Try to guess the reciepient of the message to add it to the failures .