tôi cố gắng gửi mẫu có nội dung html nhưng trong email tôi chỉ nhận được văn bảnSwiftmailerBundle cách gửi email có nội dung html? Symfony 2
làm cách nào để đặt email gửi có nội dung html?
$messaggio = \Swift_Message::newInstance()
->setSubject('Hello Email')
->setFrom('[email protected]')
->setTo('[email protected]')
->setBody($this->renderView('AcmeUserBundle:Default:email.text.twig'))
;
$this->get('mailer')->send($messaggio);
Bạn là người giỏi nhất !! – Matheno