Add Content-type:text/html;charset=UTF-8
to you header and remove * from html tags like this
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: <****@example.com>' . "\r\n";
$headers .= "Cc: ****@example.com' . "\r\n";
$message ="
<html>
<head>
<title>HTML email</title>
</head>
<body>
<div>Hello " . $row['first_name'] . " " . $row['last_name'] . "</div>
<p>John</p>
<img src="https://stackoverflow.com/questions/21701950/image.png" alt="" >
</body>
</html>
";
mail("tomailid","subject",$message,$headers);
0
solved Sendmail as HTML output [closed]