in reply to Entering Username Password on a website
The following code is an adaptation of the example in Cookbook 20.2 but is untested as I have no mail.com account :)
use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::UserAgent->new(); my $req = POST 'http://www.mail.com/scripts/common/proxy.main', [ action => 'login', show_frame => 'Enter', mail_language => 'us', login => 'full@email.address', password => 'yourpassword', ]; $content = $ua->request($req)->as_string; if ($content =~/You Have New Mail/i) { send_an_email() }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Entering Username Password on a website
by Mr. Muskrat (Canon) on Sep 18, 2002 at 14:35 UTC | |
by Molt (Chaplain) on Sep 18, 2002 at 15:45 UTC |