0
找到收件人的地址,而使用PHP郵件功能沒有在頭
的錯誤是發送郵件,我得到這個錯誤: - 沒有在標題中找到收件人地址
請幫我
這裏是代碼
//我的代碼從這裏
$to = [email protected];
$subject = $_POST['txtsub'];
$messgae = $_POST['txtmessage'];
$signature = $_POST['txtsignature'];
$redirect = "thanks.php";
$error = "error.php";
$body ="<table width='700' align='center' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td valign='top'>
$messgae <br>
</td>
</tr>
<tr>
<td valign='top'>
$signature <br>
</td>
</tr>
</table>";
$from = "Aakrutisolutions<[email protected]>";
$headers = "From: $from\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= "Content-type: text/html;charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server\r\n";
$headers .= "".$body."\n";
if(mail($to, $subject, $message, $headers))
{
?>
<script language="javascript">
location.href='bulkmail.php?sts=mailsent';
</script>
<?php
}
else
{
?>
<script language="javascript">
location.href='bulkmail.php?sts=mailnotsent';
</script>
<?php
}
//中號開始而Y碼到此爲止
告訴我們您正在使用 – 2011-01-20 06:33:42
庵確切的PHP代碼...一些代碼,請我們可以幫你*有*的? – deceze 2011-01-20 06:33:47
這是在PHP郵件常見的錯誤,我想每個人知道答案,只是OK等待分鐘我會複製過去的代碼,我的代碼是在一臺服務器的工作,但在godady服務器它給錯誤。 – Navruk 2011-01-20 06:37:35