From b3a43bc85a0caf6ba1810870f761bde3e2eb2940 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 1 Mar 2010 08:29:13 +0000 Subject: Print out error if a mail send fails in bulk mode. --- utils/mail.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/mail.php b/utils/mail.php index e681d21..42d1339 100644 --- a/utils/mail.php +++ b/utils/mail.php @@ -48,7 +48,7 @@ class _Mailinglist { { $subject = "[".$this->subj_prefix."] " . $subject; $message .= "\n\n".$this->footer; - $email->send($subject, $message, $this->sender, $this->replyto); + return $email->send($subject, $message, $this->sender, $this->replyto); } public function post($subject, $message) @@ -65,7 +65,9 @@ class _Mailinglist { foreach($this->mailinglist as $email) { - $this->postSingle($email, $ubject, $message); + if($this->postSingle($email, $ubject, $message) == false) { + echo "[fail: " . $email . "]"; + } $pct = $num / $sz * 100; if($pct >= $lvl) { -- cgit v1.2.3