I did a little more homework with the assistance given above and some more grinding of teeth.

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.