Unix and Linux Discussions Tagged with email |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
1,394 |
Shell Programming and Scripting |
|
|
|
3 |
3,068 |
Solaris |
|
|
|
4 |
2,075 |
Shell Programming and Scripting |
|
|
|
4 |
9,441 |
Shell Programming and Scripting |
|
|
|
0 |
7,005 |
Solaris |
|
|
|
1 |
22,347 |
AIX |
|
|
|
0 |
686 |
Software Releases - RSS News |
|
|
|
0 |
593 |
Software Releases - RSS News |
|
|
|
1 |
2,192 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
5 |
12,204 |
Shell Programming and Scripting |
|
|
|
1 |
2,427 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,324 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
4,305 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
698 |
Software Releases - RSS News |
|
|
|
1 |
5,482 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
0 |
597 |
Software Releases - RSS News |
|
|
|
0 |
1,299 |
OS X Support RSS |
|
|
|
0 |
2,494 |
OS X Support RSS |
|
|
|
6 |
7,976 |
Cybersecurity |
|
|
|
0 |
2,856 |
Shell Programming and Scripting |
|
|
|
0 |
2,426 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
1,723 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,110 |
UNIX and Linux RSS News |
|
|
|
1 |
4,747 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
2 |
2,673 |
Shell Programming and Scripting |
|
|
|
0 |
4,056 |
OS X Support RSS |
|
|
|
0 |
1,183 |
OS X Support RSS |
|
|
|
0 |
1,352 |
UNIX and Linux RSS News |
|
|
|
0 |
2,934 |
OS X Support RSS |
|
|
|
7 |
21,626 |
OS X (Apple) |
|
|
|
7 |
9,393 |
Shell Programming and Scripting |
|
|
|
1 |
9,436 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
6,385 |
Shell Programming and Scripting |
|
|
|
7 |
16,660 |
Shell Programming and Scripting |
|
|
|
3 |
6,711 |
Shell Programming and Scripting |
|
|
|
3 |
21,832 |
Shell Programming and Scripting |
|
|
|
15 |
6,647 |
Shell Programming and Scripting |
|
|
|
4 |
43,825 |
Shell Programming and Scripting |
|
|
|
2 |
1,715 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,857 |
UNIX for Dummies Questions & Answers |
Mail::Verify(3pm) User Contributed Perl Documentation Mail::Verify(3pm)
NAME
Mail::Verify - Utility to verify an email address
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>';
}
[...]
perl v5.8.8 2002-06-09 Mail::Verify(3pm)