public function isSendable($email)
    {
        // Does it look like an email address?
        if (! $this->isEmail($email)) {
            return false;
        }

        // Is is an example domain?
        if ($this->isExample($email)) {
            return false;
        }

        // Does it have an MX record?
        if (! $this->hasMx($email)) {
            return false;
        }

        return true;
    }
public function isSendable($email)
    {
        // Does it look like an email address?
        if (! $this->isEmail($email)) {
            return false;
        }

        // Is is an example domain?
        if ($this->isExample($email)) {
            return false;
        }

        // Does it have an MX record?
        if (! $this->hasMx($email)) {
            return false;
        }

        return true;
    }
public function isSendable ( $ email ) { // Does it look like an email address? if ( ! $ this -> isEmail ( $ email ) ) { return false ; } // Is is an example domain? if ( $ this -> isExample ( $ email ) ) { return false ; } // Does it have an MX record? if ( ! $ this -> hasMx ( $ email ) ) { return false ; } return true ; }
Validate an email address using isEmail, isExample and hasMx.

@param string $email Address
@return boolean
Validate an email address using isEmail isExample and hasMx .