diff --git a/Cron/Functions.php b/Cron/Functions.php index f851574..c0353f8 100755 --- a/Cron/Functions.php +++ b/Cron/Functions.php @@ -789,3 +789,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; + } +}