Send Email in Html format

 
<?php

$to = 'recipient@example.com';
$subject = 'This is the subject';
$message = "<div>This is the html content of this test email.</div>";
$headers = "From: sender@example.com\r\nReply-To: sender@example.com\r\n"
    . "MIME-Version: 1.0\r\n";
    . "Content-type: text/html; charset=iso-8859-1\r\n";

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

?>

 

Related Snippets

•  Send Email in Html and Plain Text formats
•  Send Email with Attachment
•  Send Email with utf-8 characters on the subject
•  Send Email with CC and BCC
•  Send Email