Bonjour,
J'essaye d'utiliser cette fonction pour vérifier l'éxistence de l'email.
Le problème c'est qu'avec une adresse du type t@tyuiop.com il me fait cette erreur :
Warning: fsockopen(): unable to connect to tyuiop.com:25 in
fonctions.php on line
321
Connection timed out (110)
Comment puis je y remédier ???
--------------------------------
function checkEmail($email)
{
if(!preg_match("/[a-zA-Z0-9-.]+\@[a-zA-Z0-9-.]+/",$email))
{
return FALSE;
} else {
list($Username, $Domain) = split("@",$email);
if(getmxrr($Domain, $MXHost))
{
return TRUE;
}
else
{
$fp = fsockopen($Domain, 25, $errno, $errstr, 30);
if($fp)
{
return TRUE;
}
else
{
echo "$errstr ($errno)<br />\n";
return FALSE;
}
}
}
}