thanks for the advice, but I think that it is a problem with the way the network is set up as I am running that exact code (straight from the documentation). Cheers anyway :)
this was in reply to... I have the Mail::Pop3Client module installed. I have it running with the debug option on, and it appears to me that the server (pop3.xtra.co.nz) is accepting the user and password that I send (it says OK please send PASS command, then OK /USER? is welcome). But it never shows that there are messages in my Inbox?? That's not the way POP works. After you login (USER is welcome here) it doesn't tell you anything. You have to ask for the info you want. In this case, I just think you have to call the Count method of your POP3Client object, then you'll know how many messages are there. Take a look at the example code in the documentation for Mail::POP3Client. use Mail::POP3Client; $pop = new Mail::POP3Client( USER => "me", PASSWORD => "mypassword", HOST => "pop3.do.main" ); for ($i = 1; $i <= $pop->Count(); $i++) { foreach ( $pop->Head( $i ) ) { /^(From|Subject):\s+/i and print $_, "\n"; } print "\n"; } The Count method is called in the for statement, and tells the loop how many times it has to cycle to process all of the messages. Then the Head method returns a list of lines that the foreach cycles over, using the regular expression there to print out the From and Subject headers of each message. Try running this little chunk of code yourself, and I think you'll find it very illustrative. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]