Try the Mail::Pop3Client.  It is available from CPAN I think.  You should be
able to use this to get your messages.  The following code is used to print
the headers of all your emails.  This is straight from example code on the
Mail::Pop3Client site (cant remember the address sorry, but just tytype
Mail::Pop3Client into google, and you should have alot of luck).


 use Mail::POP3Client;
  $pop = new Mail::POP3Client( USER     => "USERNAME",
                               PASSWORD => "PASSWORD",
                               HOST     => "SERVERNAME" );
  for( $i = 1; $i <= $pop->Count(); $i++ ) {
    foreach( $pop->Head( $i ) ) {
      /^(From|Subject):\s+/i && print $_, "\n";
    }
  }
  $pop->Close();

     Chris.

----- Original Message -----
From: "Jerry Preston" <[EMAIL PROTECTED]>
To: "begginners" <[EMAIL PROTECTED]>
Sent: Saturday, February 09, 2002 4:36 AM
Subject: Getting mail with Perl


> Hi,
>
> I what to be able to check and read mail, is this possible with PERL?
> If so, what, where .... do I need to look, read and learn?
>
> Thanks,
>
> Jerry
>
>
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to