Blekk Posted December 5, 2006 Share Posted December 5, 2006 Hi,I don't know if this fits under this category but I was testing how to send with php mail() and in the $message I put, something like:[code]<p style="color:#000000; font-size:10px;">Hello</p>[/code]But when I recieve the email in Live Messenger, all I get is not a black word at size 10 but actually the html code aswell.[quote]<p style="color:#000000; font-size:10px;">Hello</p>[/quote]Just like it was in the php document.Anyone know why?Thanks,Any reply is appreciated. Link to comment https://forums.phpfreaks.com/topic/29547-using-html-and-css-in-an-email-sent-with-php/ Share on other sites More sharing options...
drifter Posted December 5, 2006 Share Posted December 5, 2006 you need to send the header with it telling that it is an html email.from php.net$headers = 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; Link to comment https://forums.phpfreaks.com/topic/29547-using-html-and-css-in-an-email-sent-with-php/#findComment-135570 Share on other sites More sharing options...
Blekk Posted December 5, 2006 Author Share Posted December 5, 2006 Thanks Drifter,It works now ;D Link to comment https://forums.phpfreaks.com/topic/29547-using-html-and-css-in-an-email-sent-with-php/#findComment-135651 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.