Ignore:
Timestamp:
Oct 16, 2009, 10:26:40 AM (15 years ago)
Author:
cljosse
Message:

[mail_supervisor] modif bug in fonctions.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/main.inc.php

    r4045 r4049  
    9696                }   
    9797 if ($mailto<>"" )            $nb_destinataires +=1;
    98  if (!empty($args['Cc']))     $nb_destinataires += count($args['Cc']);
    99  if (!empty($args['Bcc']))    $nb_destinataires += count($args['Bcc']);
     98
     99                if (!empty($args['Bcc']))  { 
     100                        $nb_destinataires += count($args['Bcc']);
     101                        }
     102                if (!empty($args['Cc']))  {   
     103                        $nb_destinataires += count($args['Cc']);
     104                        }
    100105   //================= réécriture de l'entête ===============================
    101106if ( $nb_destinataires  == 1 )
     
    103108                if ($mailto == "" )
    104109                  {
    105                  
    106                           if (!empty($args['Cc']))  $mailto  = get_strict_email_list(implode(',', $args['Cc'])) ;
    107                           if (!empty($args['Bcc'])) $mailto  = get_strict_email_list(implode(',', $args['Bcc'])) ;
    108                          
     110                          if (!empty($args['Cc']) and count($args['Cc']) > 0 )  $mailto  = get_strict_email_list(implode(',', $args['Cc'])) ;
     111                          if (!empty($args['Bcc']) and count($args['Bcc']) > 0 ) $mailto  = get_strict_email_list(implode(',', $args['Bcc'])) ;
     112                         
    109113                                $headers = preg_replace('/.*Bcc(.*).\n/i', '', $headers);
    110114                                $headers = preg_replace('/.*Cc(.*).\n/i', '', $headers);
     115                               
    111116                  }
    112117        }else{
    113 
    114118   
    115119                if (!empty($args['Cc']))
     
    147151                 if ($nb_destinataires > 0) {
    148152                   $ret = mail($mailto, $subject, $content, $headers);
    149  
     153/* <br />
     154<b>Warning</b>:  mail() [<a href='function.mail'>function.mail</a>]: Trop de spam. Fonction mail() bloque.
     155 in <b>/mnt/102/sdb/9/5/cl.josse/Galerie/plugins/mail_supervisor/main.inc.php</b> on line <b>132</b><br />
     156*/
    150157                        }else{
    151158                           $message .='Nombre de destinataires = 0';
Note: See TracChangeset for help on using the changeset viewer.