Show
Ignore:
Timestamp:
07/08/2008 04:48:47 AM (5 months ago)
Author:
Geert
Message:

Fixed #599

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/valid.php

    r2742 r2998  
    3232        public static function email_domain($email) 
    3333        { 
     34                // If we can't prove the domain is invalid, consider it valid 
     35                // Note: checkdnsrr() is not implemented on Windows platforms 
     36                if ( ! function_exists('checkdnsrr')) 
     37                        return TRUE; 
     38 
    3439                // Check if the email domain has a valid MX record 
    3540                return (bool) checkdnsrr(preg_replace('/^[^@]+@/', '', $email), 'MX');