Commit 76d09330 authored by David's avatar David
Browse files

#7 Hotmail doit fonctionne comme tout le monde maintenant...

parent 3d458b7b
...@@ -284,10 +284,12 @@ function ListeAlias($email) { ...@@ -284,10 +284,12 @@ function ListeAlias($email) {
function SendEmail($recipient, $sujet, $message) { function SendEmail($recipient, $sujet, $message) {
$header = "From: ".EMAILFROM."\n"; $header = "From: ".EMAILFROM."\n";
$header.= "MIME-Version: 1.0\n"; $header.= "MIME-Version: 1.0\n";
/*
if (preg_match('#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#', $recipient)) { if (preg_match('#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#', $recipient)) {
$header = str_replace("\n", "\r\n", $header); $header = str_replace("\n", "\r\n", $header);
$message = str_replace("\n", "\r\n", $header); $message = str_replace("\n", "\r\n", $header);
} }
*/
$message="Bonjour,\n\n".$message."\n\n". $message="Bonjour,\n\n".$message."\n\n".
mail($recipient,EMAILTAGSUJET.' '.$sujet,$message,$header); mail($recipient,EMAILTAGSUJET.' '.$sujet,$message,$header);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment