Vote count:
0
I have a template file(html file). I have to include this template in my mail. How can i read template using swift mailer.
I tried
$emailBody = readTemplateFile("http://ift.tt/1lRa0Zu");
$emailBody_new = str_replace("#name#",$reg_fname,$message);
$emailBody_new = str_replace("#email#",$url,$emailBody_new);
$message->setBody($emailBody_new);
But in mail the html tags and css are displayed as plane text. How can i did this??
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire