rajout du support utf8
Signed-off-by: kevlarcade <kevlarcade@gmail.com>
This commit is contained in:
parent
169c4d9b24
commit
a1b50c3d01
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
mb_internal_encoding("UTF-8");
|
||||
// Check for empty fields
|
||||
if(empty($_POST['name']) ||
|
||||
empty($_POST['email']) ||
|
||||
@ -21,6 +22,6 @@ $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";
|
||||
$headers .= "Date: ".date("r");
|
||||
mail($to,utf8_encode($email_subject),utf8_encode($email_body),$headers);
|
||||
mail($to,$email_subject,$email_body,$headers);
|
||||
return true;
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user