The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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