pmboda has asked for the wisdom of the Perl Monks concerning the following question:

hi everyone, new in the world of perl. i'm trying to retrieve mails from my mail box using Mail::POP3Client but having the error message
POP3 <- ERR only valid after entering TLS mode.
here is my identification process
use Mail::POP3Client; $pop = new Mail::POP3Client( USER => "me", PASSWORD => "mypassword", HOST => "pop3.do.main" Debug => 1);
if anyone can help will be very usefull thx

Replies are listed 'Best First'.
Re: Issue With module Mail::POP3Client
by 1nickt (Canon) on May 11, 2016 at 12:23 UTC
      The docs for Mail::POP3Client don't indicate that it supports TLS

      What about all the references to SSL - eg USESSL => 1 in the constructor.
      I would think that might address the issue.
      Or are SSL and TLS mutually exclusive, these days ?

      I've always got good mileage from Mail::POP3Client, though I must admit that I don't use it extensively.

      Cheers,
      Rob
Re: Issue With module Mail::POP3Client
by hippo (Archbishop) on May 11, 2016 at 12:36 UTC

    1nickt has correctly explained the problem. My recommendation would be to use Net::POP3S instead which I have found to be reliable and straightforward.

Re: Issue With module Mail::POP3Client
by pmboda (Initiate) on May 11, 2016 at 13:47 UTC
    OK thanks for your advices, i used Net::SSLGlue::POP3 and can connect to my mailbox
      With newer versions of libnet (version 3.x) you can also use directly Net::POP3. This is included in CORE since perl 5.22.