所以我有一个电子邮件表单,其中包含姓名,电子邮件和消息。问题是我没有通过电子邮件接收任何内容,我不知道为什么。
这是代码
$headers = array();
$headers[] = "MIME-Version: 1.0";
$headers[] = "Content-type: text/plain; charset=iso-8859-1";
$headers[] = "$email";
$headers[] = "Reply-To: $email";
$headers[] = "X-Mailer: PHP/".phpversion();
mail($myemail, "Portfolio Email From $name", $mess, $headers);
$errorshere = "Message Sent";
header("Location: index.php?errors=".$errorshere."#contactpage");