summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)