- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
public function validate($mailAddress)
{
$this->mailAddress = $mailAddress;
if($this->validateMailAddress()) {
if ($this->checkMXRecord()) {
throw new \Exception('Mail is valid');
}
}
throw new \Exception('Mail is invalid');
}