Я думаю, что вы спрашиваете, является ли введенный пользователем адрес электронной почты действительным или нет !! если это так, то вы должны использовать nslookup для операционной системы на основе Unix с помощью exec. Вот небольшая функция для этого: (я проверяю, правильно ли домен) или нет
function myCheckDNSRR($email)
{
list($userName, $hostName) = split("@", $email);
$recType = '';
if(!empty($hostName)) {
if( $recType == '' ) $recType = "MX";
exec("nslookup -type=$recType $hostName", $result);
// check each line to find the one that starts with the host
// name. If it exists then the function succeeded.
foreach ($result as $line) {
if(eregi("^$hostName",$line)) {
return true;
}
}
// otherwise there was no mail handler for the domain
return false;
}
return false;
}