我使用以下代码发送电子邮件
$to = "syedmohammadibrahim@gmail.com";
$subject = "New Registration";
$message = "
<html>
<head>
<title>New User Registered</title>
</head>
<body>
<table>
<tr>
<td>Name</td>
<td>".$_POST["name"]."</td>
</tr>
<tr>
<td>Email</td>
<td>".$_POST["email"]."</td>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <webmaster@example.com>' . "\r\n";
$headers .= 'Cc: myboss@example.com' . "\r\n";
mail($to,$subject,$message,$headers);
我无法收到有关此内容的电子邮件。有什么建议吗? 你可以在这段代码中指出错误吗? 请帮帮我