こんにちは、私は私のメールを配信するためにPHPのメール機能を使用しています。私はこの警告を受ける正確な理由を知らないPHPのメール機能を使用して一度に200人以上のメンバーにメールを送ることができません
$sqlquery1 = "select employee from empl where sstatus != 'C'";
$sqlmath1 = mysql_query($sqlquery1) or die("Error: (" . mysql_errno() . ") " . mysql_error());
$cnt = mysql_num_rows($sqlmath1);
if($cnt !="0") {
while($query1 = mysql_fetch_array($sqlmath1))
{
$email1=$query1['employee'];
$emid1=base64_encode($email1);
$sid1 =base64_encode($sidtest);
$email_from1 = "[email protected]";
$link1="http://www.xx.php?mid=$emid1&sid=$sid1";
//send mail
$emailto_web1 = $email1;
$email_headers1 = "From: ".$email_from1;
num_sent_web1 = 0;
$email_message21 = "Dear Employee, \n";
$email_message21 .= "\n";
$email_message21 .= "If you cannot click on the URL, copy the URL and paste it on your address bar.\n";
$email_message21 .= "\n";
$email_message21 .= $link1."\n";
$email_message21 .= "\n\n\n";
$email_message21 .= "Regards,\n";
$email_message21 .= "Admin Team. \n";
$mail_web1 = mail($emailto_web1,$email_subject1,$email_message21,$email_headers1);
if($mail_web1)
{ $err = "Remainder Send Successfully";
}
else
{ $err=$email." Try Again";
}
}
} // not equal to zero condition
:私は400以上の電子メールIDと同じコードを実行した場合、それは私がこのコードを使用しています
Warning: mail() [function.mail]: Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /home/sendInvite.php on line 147
警告メッセージのリンクを表示しますメッセージ、貴重な提案を投稿してください。前もって感謝します !!!