FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to include ALL of text in email notifications to those subscribed to a topic?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to include ALL of text in email notifications to those subscribed to a topic? [message #33329 is a reply to message #31787] Sun, 27 August 2006 01:00 Go to previous messageGo to previous message
ky@smi is currently offline  ky@smi   Denmark
Messages: 27
Registered: June 2006
Karma:
Junior Member
Hi Ilia,
There seems to be another problem in the EGW code. Following the notifications queries, there is a while loop which is supposed to create the $to array.

while ($r = db_rowarr($c)) {
if ($r[2] & 16) {
$to['EMAIL'] = $r[0];
} else {
$to['ICQ'] = $r[1].'@pager.icq.com';
}
if (isset($r[4]) && is_null($r[3])) {
$tl[] = $r[4];
}
}

Unlike the full version which runs all of this in a subroutine, db_all() to generate the $to array, it doesn't seem to create a proper array. The email addresses from subsequent loops in the while overwrites the previous email address. So only the last email address remains in the $to variable, and the last person on the list gets notified. I'm not sure what is in $r[4]...but could I eliminate the ICQ notifications, and do something like (as in db_all())

$to=array();
while ($r = db_rowarr($c)) {
if ($r[2] & 16) {
$to[] = $r[0];
}
if (isset($r[4]) && is_null($r[3])) {
$tl[] = $r[4];
}
}

or is there a better solution...like create a $to_email array and a $to_icq array and do something like
$to['EMAIL']=$to_email;
$to['ICQ']=$to_icq;
or
$to['EMAIL'][].... or something like this? My guess is it won't be clean, and the send_notifications() will have to be modified too... Sad
[Message index]
 
Read Message icon5.gif
Read Message
Read Message icon5.gif
Read Message
Read Message icon5.gif
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Signature doesn't show up when i post through mail
Next Topic: Posting and reading by email
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 16:25:26 GMT 2024

Total time taken to generate the page: 0.07215 seconds