|
|
 |
Re: FN-FORUM Email validation
date posted 15th January 2002 18:05
it will work something like this
# Create a user agent object
$ua = new LWP::UserAgent;
# Create a request
my $tempurl;
$req = new HTTP::Request GET => $tempurl;
# Pass request to the user agent and get a response back
$res = $ua->request($req);
# Check the outcome of the response
if ($res->is_success) {
print "ok
";
}
else {
print"bad link"
}
----- Original Message -----
From: Dave Hodgkinson [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Tuesday, January 15, 2002 5:03 PM
Subject: Re: FN-FORUM Email validation
> "technoir" [EMAIL REMOVED] writes:
>
> > you can do it in perl
> >
> > use LWP module
>
> What does that buy you?
>
> Email::Valid to sanity check the domain then Net::DNS to validate the MX.
>
>
>
> --
> David Hodgkinson, Wizard for Hire http://www.davehodgkinson.com
> Editor-in-chief, The Highway Star http://www.deep-purple.com
> Deep Purple Family Tree news http://www.slashrock.com
> Interim Technical Director, Web Architecture Consultant for hire
>
> ============================================================
> = Get your message here for as little as £1 per week =
> = =
> = http://www.freelancers.net/cgi/sponsor.cgi?action=show =
> ============================================================
>
> * Free listing for freelancers
> * Free to advertise jobs
> * Free jobs distribution service
> * Free database of 5000 freelancers
>
> Freelancers and Freelance Jobs:
> http://www.freelancers.net
>
> Forum FAQs:
> http://freelancers.netrickery.com
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
|
 |
|