summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-03-01 08:29:13 +0000
committerdeva <deva>2010-03-01 08:29:13 +0000
commitb3a43bc85a0caf6ba1810870f761bde3e2eb2940 (patch)
treec75f3c8850aa1f31f0cacbd5f1a163e438a7d74a
parent3d3f8a1f0531f48a040831c32eb44e8e6b3acca8 (diff)
Print out error if a mail send fails in bulk mode.
-rw-r--r--utils/mail.php6
1 files 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) {