id_empr,'', FALSE, 0); $texte_mail=''; if($madame_monsieur) $texte_mail = $madame_monsieur."\r\n\r\n"; $texte_relance = $texte; $texte_relance = str_replace("!!date_fin_adhesion!!", $coords->aff_date_expiration, $texte_relance); $texte_mail.= $texte_relance."\r\n"; if($fdp) $texte_mail.= $fdp."\r\n\r\n"; $texte_mail.=mail_bloc_adresse(); //remplacement nom et prenom $texte_mail=str_replace("!!empr_name!!", $coords->nom,$texte_mail); $texte_mail=str_replace("!!empr_first_name!!", $coords->prenom,$texte_mail); $headers .= "Content-type: text/plain; charset=".$charset."\n"; $res_envoi=mailpmb($coords->prenom." ".$coords->nom, $coords->mail, $objet, $texte_mail, $biblio_name, $biblio_email, $headers, "", $PMBuseremailbcc,1); if ($res_envoi) echo "

".sprintf($msg["mail_retard_succeed"],$coords->mail)."


".$msg["mail_retard_close"]."


".nl2br($texte_relance); else echo "

".sprintf($msg["mail_retard_failed"],$coords->mail)."


".$msg["mail_retard_close"]."
"; } mysql_free_result($res); } else { // mettre ici le texte $coords = new emprunteur($id_empr,'', FALSE, 0); if($madame_monsieur) $texte_mail = $madame_monsieur."\r\n\r\n"; $texte = str_replace("!!date_fin_adhesion!!", $coords->aff_date_expiration, $texte); $texte_mail.=$texte."\r\n"; if($fdp) $texte_mail.= $fdp."\r\n\r\n"; $texte_mail.=mail_bloc_adresse() ; //remplacement nom et prenom $texte_mail=str_replace("!!empr_name!!", $coords->nom,$texte_mail); $texte_mail=str_replace("!!empr_first_name!!", $coords->prenom,$texte_mail); $headers .= "Content-type: text/plain; charset=".$charset."\n"; $res_envoi=mailpmb($coords->prenom." ".$coords->nom, $coords->mail, $objet, $texte_mail, $biblio_name, $biblio_email, $headers, "", $PMBuseremailbcc,1); if ($res_envoi) echo "

".sprintf($msg["mail_retard_succeed"],$coords->mail)."


".$msg["mail_retard_close"]."


".nl2br($texte); else echo "

".sprintf($msg["mail_retard_failed"],$coords->mail)."


".$msg["mail_retard_close"]."
"; }