Skip to content Skip to sidebar Skip to footer

Working With Twig And Phpmailer

I am developing a web that work with Twig and PHPMailer. When the system send a email, I want that email's body to be in HTML. I must show data in email's body. I have the file per

Solution 1:

Use render() instead of display()

$this->msgHTML($twig->render('Personal.html',array(
    "text" => $text,
    "lenguaje" => substr($lang, 0, 2)
)));

Post a Comment for "Working With Twig And Phpmailer"