par
Winsh » 12 oct. 2011, 10:45
Hello,
L'expediteur est toujours marqué inconnu dans GMAIL quand on affiche les mails en mode list.
Et quand j'ouvre le message, j'ai : "via 88.mail-out.ovh.net"
Par contre, "répondre à" affiche bien l'email de la personne.
Revoici mon code pour info, je pense qu'il manque quelque chose :
Code :
Code : Tout sélectionner
<?php
$TO = "[email protected]";
// Header of the e-mail
$Splitter = "-----=".md5(uniqid(rand()));
$h = "MIME-Version: 1.0\r\n";
$h .= "Content-Type: multipart/mixed; boundary=\"$Splitter\"\r\n";
$h .= "From: $From\r\n";
$h .= "\r\n";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "<strong>$key</strong> : $val<br />";
}
// Message texte
$msg .= "--$Splitter\r\n";
$msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$msg .= "Content-Transfer-Encoding:8bit\r\n";
$msg .= "\r\n";
$msg .= $message;
$msg .= "\r\n";
// End header
$msg .= "--$Splitter--\r\n";
$Subject .= "Nouveau message depuis le site Internet";
$Reply .= $Email;
mail($TO, mb_encode_mimeheader($Subject), $msg, "Reply-to: $Reply\r\n".$h);
Header("Location: confirmation.html" );
?>
Quelqu'un aurait une idée svp?
Merci d'avance,
Hello,
L'expediteur est toujours marqué inconnu dans GMAIL quand on affiche les mails en mode list.
Et quand j'ouvre le message, j'ai : "via 88.mail-out.ovh.net"
Par contre, "répondre à" affiche bien l'email de la personne.
Revoici mon code pour info, je pense qu'il manque quelque chose :
Code :
[code]<?php
$TO = "
[email protected]";
// Header of the e-mail
$Splitter = "-----=".md5(uniqid(rand()));
$h = "MIME-Version: 1.0\r\n";
$h .= "Content-Type: multipart/mixed; boundary=\"$Splitter\"\r\n";
$h .= "From: $From\r\n";
$h .= "\r\n";
while (list($key, $val) = each($HTTP_POST_VARS)) {
$message .= "<strong>$key</strong> : $val<br />";
}
// Message texte
$msg .= "--$Splitter\r\n";
$msg .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$msg .= "Content-Transfer-Encoding:8bit\r\n";
$msg .= "\r\n";
$msg .= $message;
$msg .= "\r\n";
// End header
$msg .= "--$Splitter--\r\n";
$Subject .= "Nouveau message depuis le site Internet";
$Reply .= $Email;
mail($TO, mb_encode_mimeheader($Subject), $msg, "Reply-to: $Reply\r\n".$h);
Header("Location: confirmation.html" );
?>[/code]
Quelqu'un aurait une idée svp?
Merci d'avance,