ajout de \n dans l’entête
Signed-off-by: kevlarcade <kevlarcade@gmail.com>
This commit is contained in:
parent
946ae28399
commit
51abd103f7
@ -19,9 +19,9 @@ $to = 'contact@labolyon.fr';
|
|||||||
$email_subject = "[Site] Contact de : $name";
|
$email_subject = "[Site] Contact de : $name";
|
||||||
$email_body = "Vous avez recu un message depuis le formulaire du site.\n\n"."Voici les details :\n\nNom : $name\n\nEmail : $email_address\n\nTelephone : $phone\n\nMessage :\n$message";
|
$email_body = "Vous avez recu un message depuis le formulaire du site.\n\n"."Voici les details :\n\nNom : $name\n\nEmail : $email_address\n\nTelephone : $phone\n\nMessage :\n$message";
|
||||||
$headers = "From: noreply@labolyon.fr\n";
|
$headers = "From: noreply@labolyon.fr\n";
|
||||||
$headers .= "Reply-To: $email_address";
|
$headers .= "Reply-To: $email_address\n";
|
||||||
$headers .= "Date: ".date("r");
|
$headers .= "Date: ".date("r")."\n";
|
||||||
$headers .= "Content-Type: text/html; charset=UTF-8";
|
$headers .= "Content-Type: text/html; charset=UTF-8";
|
||||||
mail($to,$email_subject,$email_body,$headers);
|
mail($to,$email_subject,$email_body,$headers);
|
||||||
return true;
|
return true;
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user