use smsemail stored value

darcs-hash:20080721042302-84dde-b077675affa13a761ba07b4c5ac4ff667cf00eb2.gz
This commit is contained in:
Evan Prodromou
2008-07-21 00:23:02 -04:00
parent a4edf5daef
commit c2aaa22ffb
2 changed files with 16 additions and 2 deletions

View File

@@ -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();