Jump to content


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


How to send HTML email?

Recommended Posts

Its to do with the headers in the mail
$to = "me@example.com
$subject = "Test Mail";
$body = "<html>\n"
."<title>Test Mail</title>\n"
."This is an email<br />\n"

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

mail($to, $subject, $body, $headers);

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.