We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2bdc6f06 authored by Evan Prodromou's avatar Evan Prodromou

logging and checking

darcs-hash:20080721092813-84dde-ac19bbdd85bbf796ecf8ffbc8c0cb05d0d1667ab.gz
parent 8bc98348
......@@ -169,11 +169,15 @@ function mail_broadcast_notice_sms($notice) {
$cnt = $user->find();
while ($user->fetch()) {
$success = mail_send_sms_notice($notice, $user);
if (!$success) {
common_log(LOG_ERR, 'Could not send SMS message to user', __FILE__);
return false;
common_log(LOG_INFO, "Sending notice " . $notice->id . " to $cnt subscribers", __FILE__);
if ($cnt) {
while ($user->fetch()) {
$success = mail_send_sms_notice($notice, $user);
if (!$success) {
common_log(LOG_ERR, 'Could not send SMS message to user', __FILE__);
return false;
}
}
}
......@@ -186,6 +190,8 @@ function mail_send_sms_notice($notice, $user) {
$to = $name . ' <' . $user->smsemail . '>';
$other = $notice->getProfile();
common_log(LOG_INFO, "Sending notice " . $notice->id . " to " . $user->smsemail, __FILE__);
$headers = array();
$headers['From'] = $user->incomingemail;
$headers['To'] = $to;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment