Hi Ilia,
Got the notifier to notify lists of email
I couldn't get $to['EMAIL'][] to work, but got the following to work.
$to_email=array();/*ADDED*/
$to_icq=array(); /*ADDED*/
while ($r = db_rowarr($c)) {
if ($r[2] & 16) {
$to_email[]= $r[0]; /*ADDED*/
// $to_email['EMAIL']=$r[0];
} else {
$to_icq[] = $r[1].'@pager.icq.com'; /*ADDED*/
// $to_email['ICQ']=$r[1].'@pager.icq.com';
}
if (isset($r[4]) && is_null($r[3])) {
$tl[] = $r[4];
}
}
$to['EMAIL']=$to_email; /*ADDED*/
$to['ICQ']=$to_icq; /*ADDED*/
Also found a problem in line 40 of iemail.inc.t (EGW version)
if (is_array($to)) {
// $to = $to[0];
$to_tmp=$to[0]; /* ADDED*/
if (count($to) > 1) {
unset($to[0]);
$bcc = 'Bcc: ' . implode(', ', $to);
}
$to=$to_tmp; /* ADDED */
}
The $to variable was being written over before it the $bcc was written, so only one email notification was going out.