diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-21 00:23:02 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-21 00:23:02 -0400 |
commit | c2aaa22ffb0c38a8601418f207babaf4c2867f3b (patch) | |
tree | 3130d1380f58cef6206ed369f6479a2467a42522 /lib/mail.php | |
parent | a4edf5daef8cf4cc4c519781478b994272212f6f (diff) |
use smsemail stored value
darcs-hash:20080721042302-84dde-b077675affa13a761ba07b4c5ac4ff667cf00eb2.gz
Diffstat (limited to 'lib/mail.php')
-rw-r--r-- | lib/mail.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mail.php b/lib/mail.php index 3bcb0923d..61570d295 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -159,7 +159,9 @@ 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); @@ -175,7 +177,7 @@ function mail_broadcast_notice_sms($notice) { function mail_send_notice($notice, $user) { $profile = $user->getProfile(); $name = $profile->getBestName(); - $to = $name . ' <' . $sms_email . '>'; + $to = $name . ' <' . $user->smsemail . '>'; $other = $notice->getProfile(); $headers = array(); |