Changeset 2998 for trunk/system/helpers/valid.php
- Timestamp:
- 07/08/2008 04:48:47 AM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/valid.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/valid.php
r2742 r2998 32 32 public static function email_domain($email) 33 33 { 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 34 39 // Check if the email domain has a valid MX record 35 40 return (bool) checkdnsrr(preg_replace('/^[^@]+@/', '', $email), 'MX');
