View Single Post
Old 05-27-2008, 07:33 PM   #3 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

if your on a linux platform you could use the checkdnsrr() function:

PHP Code:
$email 'user@domain.com';

$domain=explode('@'$email);

if(!
checkdnsrr($domain[1], 'MX')) //MX = mail exchange
{
    return 
false;

__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
webosb (11-21-2008)