我有(我认为)是一个发送短邮件的简单脚本:
<?php
$to = "test@test.co.uk";
$subject = "Amendment required";
$message = "Employee: " . $_POST['employees'] . "<BR /><BR />Notes: " . $_POST['notes'] . "<BR /><BR />Reported By: " . $_POST['empID'] . ".";
$from = "amendments@test.co.uk";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $from";
mail($to,$subject,$message,$headers);
?>
(出于隐私原因,我更改了电子邮件地址)
当它被加载时,经过延迟我们得到错误
“致命错误:超过 30 秒的最大执行时间......” - 但邮件发送成功。
我在这里错过了一些简单的东西吗?
提前谢谢了
雷迪