summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-21 00:23:33 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-21 00:23:33 -0400
commit184425796be8a39333b210c872e1ab29e5359409 (patch)
tree6f469391bb9cc5bba88b898eb2fe47cb4723450e /lib
parentc2aaa22ffb0c38a8601418f207babaf4c2867f3b (diff)
trim mail and maildaemon
darcs-hash:20080721042333-84dde-f3331569171b33f16322bd6b2999a21cefb718c0.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/mail.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 61570d295..73c8ae66b 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -123,7 +123,7 @@ function mail_subscribe_notify($listenee, $listener) {
"\t".'%3$s'."\n\n".
'Faithfully yours,'."\n".'%4$s.'."\n"),
$long_name,
- common_config('site', 'name'),
+ common_config('site', 'name'),
$other->profileurl,
common_config('site', 'name'));
mail_send($recipients, $headers, $body);
@@ -134,12 +134,12 @@ function mail_new_incoming_notify($user) {
$profile = $user->getProfile();
$name = $profile->getBestName();
-
+
$headers['From'] = $user->incomingemail;
$headers['To'] = $name . ' <' . $user->email . '>';
$headers['Subject'] = sprintf(_('New email address for posting to %s'),
common_config('site', 'name'));
-
+
$body = sprintf(_("You have a new posting address on %1\$s.\n\n".
"Send email to %2\$s to post new messages.\n\n".
"More email instructions at %3\$s.\n\n".
@@ -148,7 +148,7 @@ function mail_new_incoming_notify($user) {
$user->incomingemail,
common_local_url('doc', array('title' => 'email')),
common_config('site', 'name'));
-
+
mail_send($user->email, $headers, $body);
}
@@ -159,16 +159,16 @@ function mail_new_incoming_address() {
}
function mail_broadcast_notice_sms($notice) {
-
+
$user = new User();
-
+
$user->smsnotify = 1;
$user->whereAdd('EXISTS (select subscriber from subscriptions where ' .
' subscriber = user.id and subscribed = ' . $notice->profile_id);
$user->whereAdd('sms is not null');
-
+
$cnt = $user->find();
-
+
while ($user->fetch()) {
mail_send_sms_notice($notice, $user);
}
@@ -192,7 +192,7 @@ function mail_send_notice($notice, $user) {
function mail_confirm_sms($code, $nickname, $address) {
$recipients = $address;
-
+
$headers['From'] = mail_notify_from();
$headers['To'] = $nickname . ' <' . $address . '>';
$headers['Subject'] = _('SMS confirmation');