我在这个网站和php.net网站上查了哪些标签,我应该发送我的php mail()函数来正确发送html邮件。不知怎的,我的gmail仍然显示html标签。我在这方面做错了什么?
$to = "$email";
$subject = "order placed";
$from = "noreply@snorgytees.tk";
$message = "
Hi, '{$_SESSION['naam']}';
<html>
<head>
</head>
<body>
<table>
<tr>
<td>$Artikelnaam></td>
<td>$maat</td>
<td>$hoeveelheid</td>
<td>$$echteprijs</td>
<td>Total: $$totaalprijs;
<br><br>Total including VAT: $$prijs_btw</td>
</tr>
</table>
</body>
</html>
";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'To: $_POST["email"]' . "\r\n";
$headers .= 'From: noreply@snorgytees.tk' . "\r\n";
mail($to, $subject, $from, $message, $headers);