Guest User

Untitled

a guest
Mar 6th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if (db_num_rows($result)) {
  2. while ($row = db_fetch_object($result)) {
  3. $sql = ("SELECT * FROM {maildigest_mail} mm WHERE mm.uid = %d", $result->uid);
  4. $result = db_query($sql);
  5. while ($row = db_fetch_object($result)) {
  6. // group mails by user
  7. $allmail[$row->uid][] = $row;
  8. }
  9. foreach ($allmail as $uid => $mails) {
  10. // Send email
  11. set_time_limit(20);
  12. maildigest_send($mails, $uid);
  13. }
  14.  
  15. }
  16.  
  17. }
Add Comment
Please, Sign In to add comment