
Jasmine
Administrator
/ Moderator
Feb 13, 2000, 4:25 PM
Post #2 of 6
(316 views)
|
Try this: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> use Net::POP3; $user = "(my user name)"; pass = "(my password)"; $mailserver = "pop3.(my domain).com"; $pop3 = Net::POP3->new($mailserver, Timeout => 60); $pop3->login($user,$pass); ($newmess,$totalmess) = $pop3->ping($user) $pop3->quit(); print "Content-type: text/html\n\n"; print "You have $newmess new in your mailbox, and $totalmess total messages"; exit; </pre><HR></BLOCKQUOTE> You'll want to make sure that pop3.whatever.com is really your pop3 server. Otherwise, it won't work. You may also wish to use the debug option in the constructor. Docs for Net::POP3
|