P
Paul
hi, greetings,
I am trying to use Mail:OP3Client to set up a script for my gmail
accout,following is my test script,
use Mail:OP3Client;
use strict;
use warnings;
my $pop;
my $i;
$pop = Mail:OP3Client->new(USER => "myname",
PASSWORD => "myPWD",
HOST => "pop.gmail.com",
USESSL => 1);
for( $i = 1; $i <= $pop->Count(); $i++ ) {
foreach( $pop->Head( $i ) ) {
/^(From|Subject):\s+/i && print $_, "\n";
}
}
$pop->Close();
This is the error I got:
Can't locate object method "new" via package "IO::Socket::SSL" at
/usr/lib/perl5/site_perl/5.8/Mail/POP3Client.pm line 369.
I am using Cygwin on WinXP, and have installed Mail:OP3Client module
without any problems.
Do I need to install other modules? Thanks for your reply.
paul
I am trying to use Mail:OP3Client to set up a script for my gmail
accout,following is my test script,
use Mail:OP3Client;
use strict;
use warnings;
my $pop;
my $i;
$pop = Mail:OP3Client->new(USER => "myname",
PASSWORD => "myPWD",
HOST => "pop.gmail.com",
USESSL => 1);
for( $i = 1; $i <= $pop->Count(); $i++ ) {
foreach( $pop->Head( $i ) ) {
/^(From|Subject):\s+/i && print $_, "\n";
}
}
$pop->Close();
This is the error I got:
Can't locate object method "new" via package "IO::Socket::SSL" at
/usr/lib/perl5/site_perl/5.8/Mail/POP3Client.pm line 369.
I am using Cygwin on WinXP, and have installed Mail:OP3Client module
without any problems.
Do I need to install other modules? Thanks for your reply.
paul