ajout de l'entête du mail pour l'utf8

Signed-off-by: kevlarcade <kevlarcade@gmail.com>
This commit is contained in:
kevlarcade 2017-03-16 16:00:09 +01:00
parent a1b50c3d01
commit 946ae28399

View File

@ -1,5 +1,4 @@
<?php <?php
mb_internal_encoding("UTF-8");
// Check for empty fields // Check for empty fields
if(empty($_POST['name']) || if(empty($_POST['name']) ||
empty($_POST['email']) || empty($_POST['email']) ||
@ -22,6 +21,7 @@ $email_body = "Vous avez recu un message depuis le formulaire du site.\n\n"."Voi
$headers = "From: noreply@labolyon.fr\n"; $headers = "From: noreply@labolyon.fr\n";
$headers .= "Reply-To: $email_address"; $headers .= "Reply-To: $email_address";
$headers .= "Date: ".date("r"); $headers .= "Date: ".date("r");
$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;
?> ?>