GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MAIL::VERIFY (3)

.ds Aq ’

NAME

Mail::Verify - Utility to verify an email address

CONTENTS

SYNOPSIS



    use Mail::Verify;



DESCRIPTION

Mail::Verify provides a function CheckAddress function for verifying email addresses. First the syntax of the email address is checked, then it verifies that there is at least one valid MX server accepting email for the domain. Using Net::DNS and IO::Socket a list of MX records (or, falling back on a hosts A record) are checked to make sure at least one SMTP server is accepting connections.

ERRORS

Here are a list of return codes and what they mean:
0 The email address appears to be valid.
1 No email address was supplied.
2 There is a syntaxical error in the email address.
3 There are no DNS entries for the host in question (no MX records or A records).
4 There are no live SMTP servers accepting connections for this email address.

EXAMPLES

This example shows obtaining an email address from a form field and verifying it.



  use CGI qw/:standard/;
  use Mail::Verify;
  my $q = new CGI;
  [...]
  my $email = $q->param("emailaddr");
  my $email_ck = Mail::Verify::CheckAddress( $email );
  if( $email_ck ) {
      print <h1>Form input error: Invalid email address.</h1>;
  }
  [...]



POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 30: ’=item’ outside of any ’=over’
Around line 34: Expected text after =item, not a number
Around line 38: Expected text after =item, not a number
Around line 42: Expected text after =item, not a number
Around line 46: Expected text after =item, not a number
Around line 50: You forgot a ’=back’ before ’=head1’
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MAIL::VERIFY (3) 2002-06-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.