public isSendable ( string $email ) : boolean | ||
string | Address | |
Результат | boolean |
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;
}