PHP mail fonksiyonu kullanarak bir mail gönderirken bu hata var
Hata mı: - başlığında bulunamadı alıcı adresleri
Bana yardım edin
İşte kod
/ / Benim kod buradan başlıyor
$to = navruk@gmail.com;
$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<info@aakrutisolutions.com>";
$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
}
/ / Benim kodu burada biter