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 #33386 is a reply to message #33341] Tue, 29 August 2006 14:49 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,
Got the notifier to notify lists of email Very Happy

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.
[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 23:59:42 GMT 2024

Total time taken to generate the page: 0.03762 seconds