我在提交联系我们表单时收到内部服务器错误。有人可以看看下面的代码吗?
<?php
$email_to = "sales@topmarble.co.uk";
$name = $_POST["name"];
$email = $_POST["email"];
$subject = $_POST["subject"];
$message = $_POST["message"];
$text = "NAME : $name<br>
EMAIL : $email<br>
SUBJECT : $subject<br>
MESSAGE : $message";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=utf-8" . "\r\n";
$headers .= "From: <$email>" . "\r\n";
mail($email_to, "TopMarble Contact Form", $text, $headers);
?>
服务器日志:W3SVC574 P3NWVPWEB029 50.62.160.37 POST /Contact/sendCONTACT.php - 80 - 81.149.69.10(Windows + NT + 6.3; + WOW64)+(KHTML,+ like + Gecko)+ Chrome / 47.0.2526.111 utmt = 1; + _ GAT = 1; + _ GA = GA1.3.1022338839.1454154856; + sc_is_visitor_unique = rx1030806 8.1454164056.5FE680C8F5B04F09E54B2D70E903ED0B.2.2.1.1.1.1.1.1.1; + __ UTMA = 119944973. 1022338839.1454154856.1454154856.1454163827。 2; + __ utmb = 119944973.6.10.1454163827; + utmc = 119944973; + __ utmz = 119944973.1454154856.1.1.utmcsr =(direct)| utmccn =(direct)| ut mcmd =(none)topmarble.co。 uk / Contact / index.html www.topmarble.co.uk 500 0 0 1637 961 1171