From cdb7c82c11286f02c869c466cc6cdfe1fefbd0b6 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 2 Mar 2010 16:37:05 +0000 Subject: Fix annoying mail bugs... --- utils/mail.php | 4 ++-- utils/modules/newsletter.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/mail.php b/utils/mail.php index 408f607..02d1b7f 100644 --- a/utils/mail.php +++ b/utils/mail.php @@ -65,8 +65,8 @@ class _Mailinglist { foreach($this->mailinglist as $email) { - if($this->postSingle($email, $ubject, $message) == false) { - echo "[fail: " . $email . "]"; + if($this->postSingle($email, $subject, $message) == false) { + echo "[fail: " . $email->email . "]"; } $pct = $num / $sz * 100; diff --git a/utils/modules/newsletter.php b/utils/modules/newsletter.php index 58de120..dd4eca8 100644 --- a/utils/modules/newsletter.php +++ b/utils/modules/newsletter.php @@ -99,7 +99,7 @@ class Mailinglist extends _Mailinglist { $message .= "\n\nTo stop receiving this newsletter, click the following link: ". $this->unsubscribe_url."&action=unsubscribe&email=". $email->email . "\n"; - $email->send($subject, $message, $this->sender, $this->replyto); + return $email->send($subject, $message, $this->sender, $this->replyto); } public function Mailinglist($file) -- cgit v1.2.3