EmailValidator.php 399 Bytes
<?php

namespace FootyRoom\Services\Registration;

class EmailValidator
{
    protected static $bouncePattern = '/(\.pl$)|(shawnna\.progrespoland.com$)|(newwifihack24\.com$)|(rhtools.com$)/';

    public static function isBounceRisk($email)
    {
        if (preg_match(self::$bouncePattern, $email, $matches)) {
            return true;
        } else {
            return false;
        }
    }
}