Guest User

Untitled

a guest
Feb 21st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. if (!is_well_formed_email_address($email)) {
  2. echo "Email address is not well-formed.\n";
  3. } else {
  4. list(, $host) = explode('@', $email, 2);
  5. if (can_host_receive_mail($host)) {
  6. echo "Host $host can receive mail.\n";
  7. } else {
  8. echo "Host $host can't receive mail.\n";
  9. }
  10. }
Add Comment
Please, Sign In to add comment