forked from GNUsocial/gnu-social
		
	logging and checking
darcs-hash:20080721092813-84dde-ac19bbdd85bbf796ecf8ffbc8c0cb05d0d1667ab.gz
This commit is contained in:
		@@ -169,6 +169,9 @@ function mail_broadcast_notice_sms($notice) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	$cnt = $user->find();
 | 
						$cnt = $user->find();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						common_log(LOG_INFO, "Sending notice " . $notice->id . " to $cnt subscribers", __FILE__);
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						if ($cnt) {
 | 
				
			||||||
		while ($user->fetch()) {
 | 
							while ($user->fetch()) {
 | 
				
			||||||
			$success = mail_send_sms_notice($notice, $user);
 | 
								$success = mail_send_sms_notice($notice, $user);
 | 
				
			||||||
			if (!$success) {
 | 
								if (!$success) {
 | 
				
			||||||
@@ -176,6 +179,7 @@ function mail_broadcast_notice_sms($notice) {
 | 
				
			|||||||
				return false;
 | 
									return false;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	return true;
 | 
						return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -186,6 +190,8 @@ function mail_send_sms_notice($notice, $user) {
 | 
				
			|||||||
	$to = $name . ' <' . $user->smsemail . '>';
 | 
						$to = $name . ' <' . $user->smsemail . '>';
 | 
				
			||||||
	$other = $notice->getProfile();
 | 
						$other = $notice->getProfile();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						common_log(LOG_INFO, "Sending notice " . $notice->id . " to " . $user->smsemail, __FILE__);
 | 
				
			||||||
 | 
						
 | 
				
			||||||
	$headers = array();
 | 
						$headers = array();
 | 
				
			||||||
	$headers['From'] = $user->incomingemail;
 | 
						$headers['From'] = $user->incomingemail;
 | 
				
			||||||
	$headers['To'] = $to;
 | 
						$headers['To'] = $to;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user