I am now using use Mail::CheckUser qw(check_email last_check) which claims to be able to check the user mailbox:
"This Perl module provides routines for checking validity of email address.
It makes several checks:
1 It checks the syntax of an email address.
2 It checks if there any MX records or A records for the domain part of the email address.
3 It tries to connect to an email server directly via SMTP to check if mailbox is valid. Old versions of this module performed this check via the VRFY command. Now the module uses another check; it uses a combination of MAIL and RCPT commands which simulates sending an email. It can detect bad mailboxes in many cases. For example, hot mail.com mailboxes can be verified with the MAIL/RCPT check."
Well, I give it bad addresses like 333@roxio.com and it passes. Trust me on this one, that is not a have email, even though it is vailid under RFC 822. THe script does take a while to check the addresses.
Am I coding the script wrong? Am I missing something?
use... bla bla just as above :) my $EmailAddress = $cgi->param('EmailAddress'); if($EmailAddress) { my $res = Mail::CheckUser::check_email($EmailAddress); if($res==1) { print "E-mail address $EmailAddress is OK\n"; } else { print "E-mail address $EmailAddress isn't valid: ", } }
In reply to Re: Re: Determining a valid address
by sdyates
in thread Determining a valid address
by sdyates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |