Send HTML email? no can do!
Posted: Sat Jun 13, 2009 5:56 am
Hello!
I am really
as to why whenever I send an HTML email, it gets delivered as a plain text with html tags, e.g.:
while the PHP code I use is valid:
please help because I am slowly becoming
with this
I am really
delivered like this in various "places" such as MS Outlook, Yahoo, GMail, Hotmail, etc.<p>Refer to your Account Setup Information from your hosting company. </p><p> </p><p>If you enter non valid SMTP information, it will be ignored. If you are on a shared hosting, you probably need to setup an SMTP account. </p><p> </p><p><strong>If you dont, some web mail applications like yahoo and gmail will reject your email. Get help by your host!If you dont need to setup SMTP, ignore this! All recipients will receive your email.</strong></p>
while the PHP code I use is valid:
Code: Select all
$message =& new Swift_Message($title);
$message->setBody($body, "text/plain");
$message->attach(new Swift_Message_Part($html_message), "text/html");