From 8db168d6604bd33b8c6edfb98f713570493f5c5e Mon Sep 17 00:00:00 2001 From: kevlarcade Date: Tue, 14 Mar 2017 19:14:04 +0100 Subject: [PATCH] Modification de l'header + expediteur Signed-off-by: kevlarcade --- mail/contact_me.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/contact_me.php b/mail/contact_me.php index 5253574..f26c2dd 100644 --- a/mail/contact_me.php +++ b/mail/contact_me.php @@ -15,11 +15,12 @@ $email_address = $_POST['email']; $phone = $_POST['phone']; $message = $_POST['message']; -$to = 'contact@lalis.fr'; +$to = 'contact@labolyon.fr'; $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"; $headers = "From: noreply@labolyon.fr\n"; $headers .= "Reply-To: $email_address"; +$headers .= "Date: ".date("r"); mail($to,$email_subject,$email_body,$headers); return true; ?>