par
enneite » 12 août 2009, 14:19
$res=mail($destinataire,$objet,$message,$headers) ;
oui il faut parametrer la variable $headers au bon format,
du genre:
$from="[email protected]";
$cc="[email protected]";
$bcc"[email protected]";
$madate=date("D, j M Y H:i:s");
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
/* Quelques types d’entêtes : errors, From cc's, bcc's, etc */
$headers .= "From: $from\n";
if($cc!="")
$headers .= "Cc: $cc\n";
if($bcc!="")
$headers .= "Bcc: $bcc\n";
$headers.="Date:$madate\n";
$res=mail($destinataire,$objet,$message,$headers) ;
[php]$res=mail($destinataire,$objet,$message,$headers) ;[/php]
oui il faut parametrer la variable $headers au bon format,
du genre:
[php]
$from="
[email protected]";
$cc="
[email protected]";
$bcc"
[email protected]";
$madate=date("D, j M Y H:i:s");
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
/* Quelques types d’entêtes : errors, From cc's, bcc's, etc */
$headers .= "From: $from\n";
if($cc!="")
$headers .= "Cc: $cc\n";
if($bcc!="")
$headers .= "Bcc: $bcc\n";
$headers.="Date:$madate\n";
$res=mail($destinataire,$objet,$message,$headers) ;[/php]