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/29546-using-html-and-css-in-an-email/ Share on other sites More sharing options...
Daniel0 Posted December 5, 2006 Share Posted December 5, 2006 You'll need to send these headers as well: [code]MIME-Version: 1.0Content-type: text/html; charset=iso-8859-1[/code] (note that you can of course change it to another character set/encoding) Link to comment https://forums.phpfreaks.com/topic/29546-using-html-and-css-in-an-email/#findComment-135774 Share on other sites More sharing options...
ToonMariner Posted December 7, 2006 Share Posted December 7, 2006 a page I fell in love with pretty damn quick[url=http://alistapart.com/articles/cssemail]http://alistapart.com/articles/cssemail[/url] Link to comment https://forums.phpfreaks.com/topic/29546-using-html-and-css-in-an-email/#findComment-136924 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.