summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-03-02 16:37:05 +0000
committerdeva <deva>2010-03-02 16:37:05 +0000
commitcdb7c82c11286f02c869c466cc6cdfe1fefbd0b6 (patch)
tree46c7d33dd7e7b3faa9e25d93920adf96f58b2c1c
parent36c47611761b6479763dbae69572ae0beee9c4da (diff)
Fix annoying mail bugs...
-rw-r--r--utils/mail.php4
-rw-r--r--utils/modules/newsletter.php2
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)