par
claude77260 » 03 août 2011, 14:33
bonjour ci joint mes headers qui fonctionne
//------------------------------------------------------------------------------
//************************ Construction de l'entête*****************************
//------------------------------------------------------------------------------
date_default_timezone_set("Europe/Paris");
$eol="\r\n";
if($_POST['email_bcc']!="") // si email_dest existe
{
$boundary = "---------------------------------------=".md5(uniqid(rand()));
$headers .= "From: Cercle Généalogique de l'Aisne ----> " . $email_exp . "\n";
$headers .= "X-Priority:". $email_priorite . "\n";
$headers .= "Cc: " . $email_cc . "\n";
$headers .= "Bcc: " . $email_bcc . "\n";
$headers .= "Reply-to:
[email protected]\n";
$headers .= "Importance: High".$eol;
$headers .= "X-Mailer: PHP v" . phpversion().$eol;
$headers .= "Delivery-date: ".date("D, j M Y H:i:s ".$timezone).$eol;
$headers .= "X-Originating-IP: [".getenv("REMOTE_ADDR")."]".$eol;
$headers .= "X-Sender-IP: " . $_SERVER["REMOTE_ADDR"].$eol;
$supplementaire .= "-f
[email protected]";
$headers .= 'MIME-Version: 1.0'. "\n";
$headers .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"';
// pour dire qu'il y a plusieurs type d'envoi *boundary est la frontiére
$msg = 'This is a multi-part message in MIME format.'."\n\n";
bonjour ci joint mes headers qui fonctionne
//------------------------------------------------------------------------------
//************************ Construction de l'entête*****************************
//------------------------------------------------------------------------------
date_default_timezone_set("Europe/Paris");
$eol="\r\n";
if($_POST['email_bcc']!="") // si email_dest existe
{
$boundary = "---------------------------------------=".md5(uniqid(rand()));
$headers .= "From: Cercle Généalogique de l'Aisne ----> " . $email_exp . "\n";
$headers .= "X-Priority:". $email_priorite . "\n";
$headers .= "Cc: " . $email_cc . "\n";
$headers .= "Bcc: " . $email_bcc . "\n";
$headers .= "Reply-to:
[email protected]\n";
$headers .= "Importance: High".$eol;
$headers .= "X-Mailer: PHP v" . phpversion().$eol;
$headers .= "Delivery-date: ".date("D, j M Y H:i:s ".$timezone).$eol;
$headers .= "X-Originating-IP: [".getenv("REMOTE_ADDR")."]".$eol;
$headers .= "X-Sender-IP: " . $_SERVER["REMOTE_ADDR"].$eol;
$supplementaire .= "-f
[email protected]";
$headers .= 'MIME-Version: 1.0'. "\n";
$headers .= 'Content-Type: multipart/mixed; boundary="'.$boundary.'"';
// pour dire qu'il y a plusieurs type d'envoi *boundary est la frontiére
$msg = 'This is a multi-part message in MIME format.'."\n\n";