If we could include this function :
http://de.php.net/manual/en/function.getmxrr.phpthen we could decrease the number of bad email addresses by checking if the host of the email address is accepting mail.
"getmxrr -- Get MX records corresponding to a given Internet host name"
How to make it work with the current pattern matching code?
function check_email($email) {
return (preg_match('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_`{|}~]+@([-0-9A-Z]+\.)+([0-9A-Z]){2,4}$/i', $email)) ? 1 : 0;
}
Thank you!
Schumi