SwiftmailerBundle how can send email with html content? Symfony 2 SwiftmailerBundle how can send email with html content? Symfony 2 symfony symfony

SwiftmailerBundle how can send email with html content? Symfony 2


Specify content-type using ->setContentType("text/html")


You have to specify 'text/html' type:

->setBody($this->renderView('...:....html.twig'), 'text/html')