Input validation rule that tests for a valid email address (see EmailRule) and verifies that the domain portion of an email address has a valid DNS “MX” record.
$form->addRule (new DNSEmailRule ('fieldName'));
This example will check that the field named “fieldName” contains an email address that has a proper DNS-verified domain name.