mbvo Posted September 4, 2006 Share Posted September 4, 2006 How do i send an email containing html in the body? Link to comment https://forums.phpfreaks.com/topic/19715-html-in-an-email/ Share on other sites More sharing options...
switchdoc Posted September 5, 2006 Share Posted September 5, 2006 I don't know exactly how your script is set up, but to send in HTML you'll want to output this to the headers:"Content-Type: text/html; charset=\"iso-8859-1\"\n""Content-Transfer-Encoding: 8bit\r\n\r\n";Hope that helps a little.-Switchdoc Link to comment https://forums.phpfreaks.com/topic/19715-html-in-an-email/#findComment-86087 Share on other sites More sharing options...
mitzleah Posted September 5, 2006 Share Posted September 5, 2006 Specifically this should be like this:$headers = 'MIME-Version: 1.0' . "\r\n";$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";mail($to,$subject,$body,$headers) or die("Error Sending Email");Hope this one will clarify! :) Link to comment https://forums.phpfreaks.com/topic/19715-html-in-an-email/#findComment-86173 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.