Created
December 1, 2008 18:45
-
-
Save kgaughan/30801 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!is_well_formed_email_address($email)) { | |
echo "Email address is not well-formed.\n"; | |
} else { | |
list(, $host) = explode('@', $email, 2); | |
if (can_host_receive_mail($host)) { | |
echo "Host $host can receive mail.\n"; | |
} else { | |
echo "Host $host can't receive mail.\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment