Plugin/MessagePlugin.php
private function createMimeFromString($body)
    {
        $bodyPart = new Part($body);
        $bodyPart->setEncoding(Mime::ENCODING_QUOTEDPRINTABLE);
        $bodyPart->setCharset(SmtpTransportZend2::ENCODING);
        ($this->isHTML($body)) ? $bodyPart->setType(Mime::TYPE_HTML) : $bodyPart->setType(Mime::TYPE_TEXT);
        $mimeMessage = new \Zend\Mime\Message();
        $mimeMessage->addPart($bodyPart);
        return $mimeMessage;
    }
private function createMimeFromString($body)
    {
        $bodyPart = new Part($body);
        $bodyPart->setEncoding(Mime::ENCODING_QUOTEDPRINTABLE);
        $bodyPart->setCharset(SmtpTransportZend2::ENCODING);
        ($this->isHTML($body)) ? $bodyPart->setType(Mime::TYPE_HTML) : $bodyPart->setType(Mime::TYPE_TEXT);
        $mimeMessage = new \Zend\Mime\Message();
        $mimeMessage->addPart($bodyPart);
        return $mimeMessage;
    }
private function createMimeFromString ( $ body ) { $ bodyPart = new Part ( $ body ) ; $ bodyPart -> setEncoding ( Mime :: ENCODING_QUOTEDPRINTABLE ) ; $ bodyPart -> setCharset ( SmtpTransportZend2 :: ENCODING ) ; ( $ this -> isHTML ( $ body ) ) ? $ bodyPart -> setType ( Mime :: TYPE_HTML ) : $ bodyPart -> setType ( Mime :: TYPE_TEXT ) ; $ mimeMessage = new \ Zend \ Mime \ Message ( ) ; $ mimeMessage -> addPart ( $ bodyPart ) ; return $ mimeMessage ; }
Create HTML mime message from the string.

@param string $body
@return \Zend\Mime\Message
Create HTML mime message from the string .