From 903ab0c54421d94ef1b5192ba346c4eb6d83b0ff Mon Sep 17 00:00:00 2001 From: kevlarcade Date: Thu, 16 Mar 2017 16:12:18 +0100 Subject: [PATCH] ajout du type mime et envoie du mail en text/plain 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 f853ae2..7682b26 100644 --- a/mail/contact_me.php +++ b/mail/contact_me.php @@ -21,7 +21,8 @@ $email_body = "Vous avez recu un message depuis le formulaire du site.\n\n"."Voi $headers = "From: noreply@labolyon.fr\n"; $headers .= "Reply-To: $email_address\n"; $headers .= "Date: ".date("r")."\n"; -$headers .= "Content-Type: text/html; charset=UTF-8"; +$headers .= "Content-Type: text/plain; charset=UTF-8"; +$headers .= "MIME-Version: 1.0\n"; mail($to,$email_subject,$email_body,$headers); return true; ?>