After successfully sending simple email it’s time to send the body of the email as HTML.
<?php
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
if(mail($to, $subject, $message, "$headers \r\n From: $from"))
echo "Mail sent successfully";
else
echo "Mail send failure - message not sent";
?>