|
|
@@ -41,7 +41,7 @@ if(isset($_POST['mail'])) {
|
|
|
$bcc = 'francoisbeaufils@zeno-labs.com';
|
|
|
|
|
|
$headers = 'MIME-Version: 1.0' . "\r\n";
|
|
|
- $headers .= 'Content-type: text/html; charset=UTF8' . "\r\n";
|
|
|
+ $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
|
|
|
$headers .= 'Bcc: '.$bcc."\r\n";
|
|
|
|
|
|
if(isset($_POST['siteEmail'])) {
|
|
|
@@ -49,11 +49,14 @@ if(isset($_POST['mail'])) {
|
|
|
}
|
|
|
|
|
|
// En-têtes additionnels
|
|
|
- $headers .= 'From: Manche Numérique <'.$email.'>' . "\r\n";
|
|
|
+ $headers .= mb_encode_mimeheader('From: Manche Numérique <'.$email.'>' . "\r\n", "UTF-8");
|
|
|
+
|
|
|
+ $subject = utf8_decode($$_POST['mail']['sujet']);
|
|
|
+ $subject = mb_encode_mimeheader($subject
|
|
|
|
|
|
// Envoi
|
|
|
$to = $_POST['mail']['to'];
|
|
|
- $resultat = mail($to, $_POST['mail']['sujet'], $_POST['mail']['message'], $headers);
|
|
|
+ $resultat = mail($to, $subject, $_POST['mail']['message'], $headers);
|
|
|
}
|
|
|
|
|
|
if(isset($resultat)){
|