Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Net::POP3 Does not authenticate with cpop6 ?

Discussion in 'General Discussion' started by sgemma, Nov 17, 2003.

  1. sgemma

    sgemma Member

    Joined:
    Nov 17, 2002
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    I've just installed the Net::POP3_Auth and Net::POP3 modules for a client of mine. The script is very simple, straight from cpan documentation, it looks like:

    #!/usr/bin/perl

    use Net::POP3_auth;

    $pop = Net::POP3_auth->new('server');
    $pop->auth('APOP', 'email', 'password');

    print $pop->list;
    $pop->quit;

    However when the user attempts to run the script, the error is received:

    Can't call method "auth" on an undefined value at pop3auth.pl line 6.

    This is not a complicated issues and it dies on line 6 which is due to line 5 failing, so it is unable to connect with the imap server (which i've tried 3 valid pop3 servers).

    Does anybody have any idea why this would be failing? Thanks for your time.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice