我有以下代碼(我認爲)將只驗證電子郵件地址的域。電子郵件驗證PHP
$EmailAddress = "[email protected]";
list($User, $Domain) = explode("@", $EmailAddress);
$DomainExists = checkdnsrr($Domain, 'MX');
if($DomainExists==true){
// Email domain exists
}
else{
// Email domain does not exist
}
如果我可以,我怎麼驗證$User
一部分?
可能的重複[如何驗證電子郵件地址是否存在?](http://stackoverflow.com/questions/2750175/how-to-verify-if-a-email-address-exists) – Quentin 2011-02-13 16:04:10