I had set up email sending in localhost and using that I can access my gmail account to send mail using php script.
<?php
$to = "example@gmail.com";
$subject = "HTML Mail";
$message = "<html><body>";
$message .= "<b>Hey! How are you today?</b>";
$message .= "<br>Regards";
$message .= "</body></html>";
$headers = "From: myemail@gmail.com\r\n";
mail($to,$subject,$message,$headers);
echo "<h1>MAIL SENT</h1>";
?>
When I send this email using this script, it gives out
<html><body><b>Hey! How are you today?</b><br>Regards</body></html>
Why html type output is not shown?
Hey! How are you today?
Regards
Like this in gmail?