public function isEmailBanned($email)
    {
        $emailTemplates = $this->getEmailTemplates();

        foreach ($emailTemplates as $emailTemplate) {
            $emailRule = new Email($emailTemplate);
            if ($emailRule->check($email)) {
                return true;
            }
        }
        return false;
    }
public function isEmailBanned($email)
    {
        $emailTemplates = $this->getEmailTemplates();

        foreach ($emailTemplates as $emailTemplate) {
            $emailRule = new Email($emailTemplate);
            if ($emailRule->check($email)) {
                return true;
            }
        }
        return false;
    }
public function isEmailBanned ( $ email ) { $ emailTemplates = $ this -> getEmailTemplates ( ) ; foreach ( $ emailTemplates as $ emailTemplate ) { $ emailRule = new Email ( $ emailTemplate ) ; if ( $ emailRule -> check ( $ email ) ) { return true ; } } return false ; }
Check if the given email is banned.

@param string $email
@return bool
Check if the given email is banned .