Jump to content

Archived

This topic is now archived and is closed to further replies.

mbvo

html in an email

Recommended Posts

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

Share this post


Link to post
Share on other sites
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! :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.