Changeset 4049 for extensions/Mail_supervisor/main.inc.php
- Timestamp:
- Oct 16, 2009, 10:26:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Mail_supervisor/main.inc.php
r4045 r4049 96 96 } 97 97 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 } 100 105 //================= réécriture de l'entête =============================== 101 106 if ( $nb_destinataires == 1 ) … … 103 108 if ($mailto == "" ) 104 109 { 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 109 113 $headers = preg_replace('/.*Bcc(.*).\n/i', '', $headers); 110 114 $headers = preg_replace('/.*Cc(.*).\n/i', '', $headers); 115 111 116 } 112 117 }else{ 113 114 118 115 119 if (!empty($args['Cc'])) … … 147 151 if ($nb_destinataires > 0) { 148 152 $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 */ 150 157 }else{ 151 158 $message .='Nombre de destinataires = 0';
Note: See TracChangeset
for help on using the changeset viewer.