I am trying to send HTML code inside the mail function but unfortunately, the connection is established but the email is not sent...This is my code below please help me with it.
<?php
if($_SERVER['REQUEST_METHOD']=='POST'){
require_once('connect.php');
$userEmail = $_POST['myuserEmail'];
//print_r($userEmail);
$to=$userEmail;
$subject="Welcome Aboard| Judgement6";
$message="<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>A table as email</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Fname</td>
<td>Sname</td>
</tr>
</table>
</body>
</html>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\b";
$headers = "From: judgement6ent@gmail.com" . "\r\n";
mail($to,$subject,$message,$headers);
echo 'email sent';
?>