in reply to Re: Re: Email Validation, Round 2
in thread Email Validation, Round 2
and this:mxcheck ( <TRUE>|<FALSE> ) Specifies whether addresses passed to address() should be checked for a valid DNS entry. The default is false.
I said that Email::Valid will "verify that the target domain exists", not that the email address is ultimately deliverable.If an error is encountered, an exception is raised. This is really only possible when performing DNS queries. Trap any exceptions by wrapping the call in an eval block: eval { $addr = Email::Valid->address( -address => 'maurice@hevanet.com +', -mxcheck => 1 ); }; warn "an error was encountered: $@" if $@;
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (maverick) 3Re: Email Validation, Round 2
by drfrog (Deacon) on Aug 25, 2001 at 00:42 UTC | |
|
Re: (maverick) 3Re: Email Validation, Round 2
by legLess (Hermit) on Aug 25, 2001 at 01:45 UTC |