Mail::CheckUser

Check email addresses for validity
Download

Mail::CheckUser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ilya Martynov
  • Publisher web site:
  • http://search.cpan.org/~ilyam/

Mail::CheckUser Tags


Mail::CheckUser Description

Check email addresses for validity Mail::CheckUser is a Perl module to check email addresses for validity.SYNOPSIS use Mail::CheckUser qw(check_email); my $ok = check_email($email_addr); use Mail::CheckUser qw(:constants check_email last_check) my $ok = check_email($email_addr); print "DNS timeout " if last_check()->{code} == CU_DNS_TIMEOUT; use Mail::CheckUser; my $res = Mail::CheckUser::check_email($email_addr);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.If is possible to turn off some or all networking checks (items 2 and 3). See "GLOBAL VARIABLES".This module was designed with CGIs (or any other dynamic Web content programmed with Perl) in mind. Usually it is required to quickly check e-mail addresses in forms. If the check can't be finished in reasonable time, the e-mail address should be treated as valid. This is the default policy. By default if a timeout happens the result of the check is treated as positive. This behavior can be overridden - see "GLOBAL VARIABLES". Requirements: · Perl


Mail::CheckUser Related Software