diff --git a/Cron/Functions.php b/Cron/Functions.php index ca8ad189..ed61d912 100755 --- a/Cron/Functions.php +++ b/Cron/Functions.php @@ -848,3 +848,12 @@ function est_anglophone() { return (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"); } + +function estUnMail($adresseMail) +{ + if (filter_var($adresseMail, FILTER_VALIDATE_EMAIL)) { + return true; + } else { + return false; + } +}