私はPEARMail_Queueを使用していますが、「悪い」受信者(「òla@test.com」、「uuu @ test、com」、「test @ test」などの悪い構文)に電子メールを送信しようとしている場合を除いて、すべてがうまく機能します。 com.com ")
キューが悪い受信者を見つけると、それはただ停止し、他のすべてのメールをdbキューテーブルに残します...
キューテーブル内の不良メールを削除(または削除しない)して、次のメールにジャンプさせたいだけです...たぶん必要なのはエラー処理だけです...
私が使用しているコード(さらにコードが必要な場合は、質問してください:)):
/* How many mails could we send each time the script is called */
$max_amount_mails = 10;
$query=mysql_query("SELECT count(*) FROM mail_queue ORDER by id asc");
$num_tosend= mysql_result($query, 0, 0);
$num_mail=ceil($num_tosend/$max_amount_mails);
/* we use the db_options and mail_options from the config again */
$mail_queue =& new Mail_Queue($db_options, $mail_options);
$mail_queue->setBufferSize(10);
$contaEmailSpeditesi=0;
/* really sending the messages */
for($i=1;$i<=$num_mail;$i++){
$mail_queue->sendMailsInQueue($max_amount_mails,MAILQUEUE_START,1);
sleep(2);
}
ありがとう !!