skipion
10-11-2005, 11:34 AM
I'm trying to make use of email::valid. Since my host (hypermart) doesnt support this module i download it from cpan.org, and placed it in my cgi-bin directory under the name: valid.pm. The script below runs fine, but for some reason, he sees all (as far as i've tested) email as invalid. how come ?
#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI;
require "Valid.pm";
$q=new CGI;
$senderemail="cooldaddy@wanadoo.nl";
$result=(Email::Valid->address($senderemail) ? 'yes' : 'no');
if ($result eq "yes")
{
print "Valid Email Address";
}
else
{
print "Invalid Email Address";
}
#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI;
require "Valid.pm";
$q=new CGI;
$senderemail="cooldaddy@wanadoo.nl";
$result=(Email::Valid->address($senderemail) ? 'yes' : 'no');
if ($result eq "yes")
{
print "Valid Email Address";
}
else
{
print "Invalid Email Address";
}