in reply to Determine if domain is actually used for email
Email::Valid does this; for domains or as a part of validating addresses: "mx ( <ADDRESS>|<DOMAIN> ) This method accepts an email address or domain name and determines whether a DNS record (A or MX) exists for it."
perl -MEmail::Valid -le 'print Email::Valid->mx("gmail.com") ? "yep" : + "nope"' yep perl -MEmail::Valid -le 'print Email::Valid->mx("tacohut.co.uk.jp.cx") + ? "yep" : "nope"' nope
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Determine if domain is actually used for email
by Limbic~Region (Chancellor) on Oct 04, 2011 at 18:19 UTC | |
by Your Mother (Archbishop) on Oct 04, 2011 at 19:14 UTC | |
by Limbic~Region (Chancellor) on Oct 04, 2011 at 19:17 UTC | |
by Your Mother (Archbishop) on Oct 04, 2011 at 19:35 UTC | |
by vit (Friar) on Oct 05, 2011 at 13:08 UTC | |
|