Version: v1.0
Type: Function
Category: Other
License: Other
Description: E Mail check function "is_email($mail);" Check: - entry email x@x.xx format - entry email domain check mx server Important Note: Function not windows runing! E Posta adresinin doruluunu kontrol eden "is_email($mail);" fonksiyon Kontroller: - Girilen e-posta adresinin x@x.xx formana uygun olup olmad - Girilen e-posta adresi domainine bal bir MX ( mail ) sunucusu olup olmadn kontrol eder. nemli Not: Funksiyon PHP nin yerel ktphanesini kulland in windows sunucularda al. Yardm iin (for help): http://trteknik.net
<?PHP
// Fonksiyon yazar (Coded by) : Halit Yeil
// E-Posta Adresi : halit.yesil [et] trteknik [nokta] net
// E-mail adress : halit.yesil [at] trteknik [dot] net
// Web Sitesi (web page): http://trteknik.net
// GSM : +90 535 648 3504
// yi anslar / Good Luck :)
function is_email($eposta)
{
if(!eregi('^[a-zA-Z0-9_\-\.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $eposta))
{
// Eer E-Posta Adresi x@x.xx Formatnda deilse False (yanl) Sonucu dnecektir...
//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"))
{
// Eer domain adresine bal MX (Mail) sunucusu var ise sonu True (doru) dner...
//is Domain MX server true...
return true;
}
else
{
// Eer domain adresine bal bir MX sunucusu yok ise sonu False Dner...
//not Domain Mx Server
return false;
};
};
};
?>