Forum Moderators: coopster
<?PHP
// İyi Şanslar / Good Luck :)
function is_email($eposta)
{
if(!eregi('^[a-zA-Z0-9_\-\.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $eposta))
{
// Eğer E-Posta Adresi x@x.xx Formatında değilse False (yanlış) Sonucu dönecektir...
//Not E-Mail Format x@x.xx ...
return false;
}
else
{
list($account, $domain) = split("@", $eposta);
// Önemli checkdnsrr() Fonksiyonu Windows sunucularda yoktur...
// checkdnsrr() Fonction is Not Windows Server... Only Linux...
if (checkdnsrr($domain, "MX"))
{
// Eğer domain adresine bağlı MX (Mail) sunucusu var ise sonuç True (doğru) döner...
//is Domain MX server true...
return true;
}
else
{
// Eğer domain adresine bağlı bir MX sunucusu yok ise sonuç False Döner...
//not Domain Mx Server
return false;
};
};
};
?>
[edited by: dreamcatcher at 2:22 pm (utc) on July 31, 2006]
[edit reason]
[1][edit reason] No urls as per TOS [webmasterworld.com] Thanks. [/edit] [/edit][/1]