Unix and Linux Discussions Tagged with email |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
7,793 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
29,341 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,442 |
UNIX for Beginners Questions & Answers |
|
|
|
17 |
12,222 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
7,477 |
Shell Programming and Scripting |
|
|
|
3 |
3,613 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
14,637 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
16,819 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
9 |
7,131 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
6,498 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
4,645 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
8,885 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,556 |
Shell Programming and Scripting |
|
|
|
10 |
8,870 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
10,104 |
Shell Programming and Scripting |
|
|
|
2 |
10,074 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,866 |
Shell Programming and Scripting |
|
|
|
2 |
2,975 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
4,151 |
What is on Your Mind? |
|
|
|
17 |
5,695 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,133 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,402 |
Shell Programming and Scripting |
|
|
|
2 |
27,625 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
5 |
2,550 |
Shell Programming and Scripting |
|
|
|
1 |
12,952 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
1 |
13,299 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
1 |
2,424 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
1,828 |
Shell Programming and Scripting |
|
|
|
5 |
3,246 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
1,997 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,401 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
12,518 |
Windows & DOS: Issues & Discussions |
|
|
|
13 |
3,487 |
Shell Programming and Scripting |
|
|
|
2 |
9,910 |
Web Development |
|
|
|
0 |
3,003 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,930 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,753 |
Solaris |
|
|
|
2 |
2,576 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,324 |
AIX |
|
|
|
4 |
2,215 |
Shell Programming and Scripting |
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)