Click here to get back home

POP3Client problem with SSL

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
POP3Client problem with SSL kramer27182 02-20-2005
Get Chitika Premium
Posted by kramer27182 on February 20, 2005, 4:42 pm
Please log in for more thread options


I have been trying to use the module Mail::POP3Client with SSL

I use the constructor to create a new pop object like so:

my $pop = new Mail::POP3Client(
                         HOST => $host,
                         USER => $username,
                         PASSWORD => $password,
                         USESSL => 1
                         );

and I get the error:

Can't locate object method "new" via package "IO::Socket::SSL" at
/usr/local/lib
/perl5/site_perl/5.8.1/Mail/POP3Client.pm line 369.

I'm working on a SPARC box that my office maintains, so to verify, I
installed POP3Client (and dependecies via CPAN) on my home machine
(windows box w/cygwin) and got the same error.

Okay, so I usually expect an @INC error message when something is not
installed, but just to be safe, I thought that I should install
IO::SOCKET::SSL, but I get a huge amount of error messages.

What am I doing wrong?

-Kramer



Posted by Sisyphus on February 21, 2005, 3:53 am
Please log in for more thread options


kramer27182@yahoo.com wrote:
> I have been trying to use the module Mail::POP3Client with SSL
>
> I use the constructor to create a new pop object like so:
>
> my $pop = new Mail::POP3Client(
>                          HOST => $host,
>                          USER => $username,
>                          PASSWORD => $password,
>                          USESSL => 1
>                          );
>
> and I get the error:
>
> Can't locate object method "new" via package "IO::Socket::SSL" at
> /usr/local/lib
> /perl5/site_perl/5.8.1/Mail/POP3Client.pm line 369.
>
> I'm working on a SPARC box that my office maintains, so to verify, I
> installed POP3Client (and dependecies via CPAN) on my home machine
> (windows box w/cygwin) and got the same error.
>
> Okay, so I usually expect an @INC error message when something is not
> installed, but just to be safe, I thought that I should install
> IO::SOCKET::SSL, but I get a huge amount of error messages.
>

I take it that IO::Socket::SSL is not installed. You should first verify
that is the case. If you don't have it, then you definitely need it -
and if you're having trouble installing it, then we probably need to see
the error messages you're getting.

IO::Socket::SSL requires Net::SSLeay which you can download from
http://search.cpan.org/~sampo/Net_SSLeay.pm-1.25/ . It in turn requires
OpenSSL ... so perhaps that explains the error messages .... and perhaps
there's a bit of work for you to do :-)

Cheers,
Rob

--
To reply by email u have to take out the u in kalinaubears.



Posted by kramer27182 on February 21, 2005, 8:23 am
Please log in for more thread options


Thanks for the help, I tried installing Net::SSLeay. I got a ton of
error messages ... after further inpection it looks like Net::SSLeay is
unhappy because it wants me to compile it with the same compiler as
OpenSSL (which was installed as a pre-compiled binary). I'll either
recompile OpenSSL or find some other work around.

Thanks again.



Similar ThreadsPosted
I have problem with POP3Client&Sendmail Module, Please Help. April 20, 2007, 4:34 am
First line in body of Mail::POP3Client March 23, 2007, 9:43 am
Print Subject without characters Just Numbers using POP3Client. Please Help April 10, 2007, 11:27 pm
How to print just numbers includes in Subject using POP3Client Module. April 9, 2007, 9:18 pm
Problem with Net::FTP July 21, 2004, 12:40 pm
DBI - DBD-DB2 Problem - Please help June 2, 2005, 11:07 pm
Net::FTP->problem with put February 28, 2006, 2:11 am
Re: Problem with DBD::DB2 on AIX. September 20, 2006, 2:10 pm
net::telnet problem July 23, 2004, 6:46 pm
Lwp Post Problem September 1, 2004, 4:09 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap