diff --git a/formulaires/gamucontact.php b/formulaires/gamucontact.php index f075955..7ba6af4 100644 --- a/formulaires/gamucontact.php +++ b/formulaires/gamucontact.php @@ -75,6 +75,12 @@ function formulaires_gamucontact_verifier_dist($id_auteur = 0, $redirect = '') { } } + // pas de mail bidon + if (!email_valide(_request('email_contact'))) { + //$erreurs['texte'] = _T('gamucontact:erreur_mail_invalide'); + $erreurs['email_contact'] = _T('gamucontact:erreur_mail_invalide'); + } + return $erreurs; } diff --git a/lang/gamucontact_en.php b/lang/gamucontact_en.php index 5237221..eae4622 100644 --- a/lang/gamucontact_en.php +++ b/lang/gamucontact_en.php @@ -18,6 +18,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // EE 'envoyer' => "Send", 'email' => 'Email', + 'erreur_mail_invalide' => 'Your email address does not seem valid: please check it.', // F 'formulaire_bien_envoye' => 'Your message had been send.', diff --git a/lang/gamucontact_fr.php b/lang/gamucontact_fr.php index 67c4ac9..202e32c 100644 --- a/lang/gamucontact_fr.php +++ b/lang/gamucontact_fr.php @@ -18,6 +18,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // EE 'envoyer' => "Envoyer", 'email' => 'Email', + 'erreur_mail_invalide' => 'Votre adresse email ne semble pas valide : merci de la vérifier.', // F 'formulaire_bien_envoye' => 'Votre message a bien été envoyé.',