ajout du type mime et envoie du mail en text/plain

Signed-off-by: kevlarcade <kevlarcade@gmail.com>
This commit is contained in:
kevlarcade 2017-03-16 16:12:18 +01:00
parent 51abd103f7
commit 903ab0c544

View File

@ -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 = "From: noreply@labolyon.fr\n";
$headers .= "Reply-To: $email_address\n"; $headers .= "Reply-To: $email_address\n";
$headers .= "Date: ".date("r")."\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); mail($to,$email_subject,$email_body,$headers);
return true; return true;
?> ?>