src/Email/SwiftEmail.php
public function addMessage(Message $message): Email
    {
        if (null === $this->message->getBody()) {
            $this->message->setBody($message->getBody(), $message->getContentType());

            return $this;
        }

        $this->message->addPart($message->getBody(), $message->getContentType());

        return $this;
    }
public function addMessage(Message $message): Email
    {
        if (null === $this->message->getBody()) {
            $this->message->setBody($message->getBody(), $message->getContentType());

            return $this;
        }

        $this->message->addPart($message->getBody(), $message->getContentType());

        return $this;
    }
public function addMessage ( Message $ message ) : Email { if ( null === $ this -> message -> getBody ( ) ) { $ this -> message -> setBody ( $ message -> getBody ( ) , $ message -> getContentType ( ) ) ; return $ this ; } $ this -> message -> addPart ( $ message -> getBody ( ) , $ message -> getContentType ( ) ) ; return $ this ; }
Add message body to email.

@param Message $message

@return self
Add message body to email .