mardi 24 juin 2014

how to read template using swift mailer?


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

next2u

1,009





Aucun commentaire:

Enregistrer un commentaire