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