--- W:/dev/d6/sites/all/modules/custom/email_verify/email_verify.install	Thu Mar 19 18:33:20 2009
+++ W:/dev/d6/sites/all/modules/custom/email_verify/email_verify.install	Fri Apr 10 14:40:02 2009
@@ -24,6 +24,13 @@
   // What SMTP servers should we contact?
   $mx_hosts = array();
 
+  // checkdnsrr and getmxrr were added to Windows platform in PHP 5.3 
+  // http://www.php.net/checkdnsrr http://www.php.net/manual/en/function.getmxrr.php
+  if (stristr(PHP_OS, 'WIN') && PHP_VERSION < 5.3) {
+    drupal_set_message(t('Email Verify could not contact the mail host because the server is running on Windows with a version of PHP below 5.3. The module can be enabled, but will not perform any address checking.'), 'warning');
+    return;
+  }
+
   if (!getmxrr($host, $mx_hosts)) {
     // When there is no MX record, the host itself should be used
     $mx_hosts[] = $host;
--- W:/dev/d6/sites/all/modules/custom/email_verify/email_verify.inc.php	Fri Apr 10 14:35:46 2009
+++ W:/dev/d6/sites/all/modules/custom/email_verify/email_verify.inc.php	Fri Apr 10 14:36:13 2009
@@ -12,6 +12,13 @@
     return;
   }
 
+  // checkdnsrr and getmxrr were added to Windows platform in PHP 5.3 
+  // http://www.php.net/checkdnsrr http://www.php.net/manual/en/function.getmxrr.php
+  if (stristr(PHP_OS, 'WIN') && PHP_VERSION < 5.3) {
+    drupal_set_message(t('Email Verify could not check the address because the server is running on Windows with a version of PHP below 5.3.'), 'warning');
+    return;
+  }
+
   $host = substr(strchr($mail, '@'), 1);
 
   // Let's see if we can find anything about this host in the DNS
