public function getTextMessageBody(ParserInterface $parser)
    {
        $message = $this->getMessageBody(
            $parser,
            $this->getTextMessage(),
            $this->getTextLayoutFileName(),
            $this->getTextTemplateFileName(),
            true // Do not compress the output, and keep empty lines.
        );

        // Replaced all <br> by newlines.
        return preg_replace("/<br>/i", "\n", $message);
    }
public function getTextMessageBody(ParserInterface $parser)
    {
        $message = $this->getMessageBody(
            $parser,
            $this->getTextMessage(),
            $this->getTextLayoutFileName(),
            $this->getTextTemplateFileName(),
            true // Do not compress the output, and keep empty lines.
        );

        // Replaced all <br> by newlines.
        return preg_replace("/<br>/i", "\n", $message);
    }
public function getTextMessageBody ( ParserInterface $ parser ) { $ message = $ this -> getMessageBody ( $ parser , $ this -> getTextMessage ( ) , $ this -> getTextLayoutFileName ( ) , $ this -> getTextTemplateFileName ( ) , true // Do not compress the output, and keep empty lines. ) ; // Replaced all <br> by newlines. return preg_replace ( "/<br>/i" , "\n" , $ message ) ; }
Get the TEXT message body
Get the TEXT message body