Subversion Repositories Sites.tela-botanica.org

Rev

Rev 463 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 463 Rev 499
Line 163... Line 163...
163
    
163
    
164
    $_POST['corps'] .= CAR_TEXTE_FIN_MAIL;
164
    $_POST['corps'] .= CAR_TEXTE_FIN_MAIL;
165
    $_POST['corps'] = stripslashes($_POST['corps']) ;
165
    $_POST['corps'] = stripslashes($_POST['corps']) ;
166
    $liste = "" ;
166
    $liste = "" ;
167
    foreach ($_POST['select'] as $key => $value) {
167
    foreach ($_POST['select'] as $key => $value) {
168
        mail ($value, stripslashes($_POST['titre_mail']), $_POST['corps'], $entete) ;
168
        mail($value, stripslashes($_POST['titre_mail']), $_POST['corps'], $entete) ;
169
        $liste .= $value."\n" ;
169
        $liste .= $value."\n" ;
Line 170... Line 170...
170
    }
170
    }
171
    
171
    
172
    $_POST['corps'] .= "\n----------------------------------------------------------------------------";
172
    $_POST['corps'] .= "\n----------------------------------------------------------------------------";
Line -... Line 173...
-
 
173
    $_POST['corps'] .= "\n".CAR_MESSAGE_APPLI."\n" ;
-
 
174
    $_POST['corps'] .= "\n".CAR_MESSAGE_ENVOYE_A.":\n $liste" ;
173
    $_POST['corps'] .= "\n".CAR_MESSAGE_APPLI."\n" ;
175
    
-
 
176
    // Envoie du message aux administrateurs
-
 
177
	foreach ($GLOBALS['mail_admin'] as $courriel) {
-
 
178
		if (!mail($courriel, stripslashes($_POST['titre_mail']), $_POST['corps'], $entete)) {
-
 
179
			trigger_error("Le courriel n'a pas été envoyé à : $courriel", E_USER_WANRNING);
-
 
180
		}
Line 174... Line 181...
174
    $_POST['corps'] .= "\n".CAR_MESSAGE_ENVOYE_A.":\n $liste" ;
181
	}
175
    
182
    
176
    mail ("carto@tela-botanica.org", stripslashes($_POST['titre_mail']), $_POST['corps'], $entete);
183
    
177
    
184