function mail_html($to , $sujet , $message , $reply , $from , $entete="" ){
$limite = "_parties_".md5 (uniqid (rand()));
$mail_mime = "Date: ".date("l j F Y, G:i" )."\n";
$mail_mime .= "MIME-Version: 1.0\n";
$mail_mime .= "Content-Type: multipart/alternative;\n";
$mail_mime .= " boundary=\"----=$limite\"\n\n";
//Le message en texte simple pour les navigateurs qui n'acceptent pas le HTML
$texte_simple = "This is a multi-part message in MIME format.\n";
$texte_simple .= "Ceci est un message est au format MIME.\n";
$texte_simple .= "------=$limite\n";
$texte_simple .= "Content-Type: text/plain; charset=\"US-ASCII\"\n";
$texte_simple .= "Content-Transfer-Encoding: 7bit\n\n";
$texte_simple .= strip_tags(eregi_replace("<br>", "\n", $message));
$texte_simple .= "\n\n";
//le message en html original
$texte_html = "------=$limite\n";
$texte_html .= "Content-Type: text/html; charset=\"US-ASCII\"\n";
$texte_html .= "Content-Transfer-Encoding: 7bit\n\n";
$texte_html .= $message;
$texte_html .= "\n\n\n------=$limite\n";
return mail($to, $sujet, $texte_simple.$texte_html, "Reply-to: $reply\nFrom:
$from\n".$entete);
}
---------------
A suivre