sbmp111 has asked for the wisdom of the Perl Monks concerning the following question:
Hi any one please help me I want to fetch my gmail inbox throuhg pop3/Imap. how to do it? can anyone help me out n come out with a clear steps, please. The following code m trying but m getting error unable to connect
#!/usr/bin/perl use Net::POP3; $mailhost='pop.gmail.com'; $un='xyz@gmail.com'; $pw='xyz'; $conn= Net::POP3->new ($mailhost) or die "unable to xssf connect \n"; print "$conn\n"; $ret=$conn->login($un, $pw) or die "unable to connect $!"; print "\n$ret\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to read mails thru pop3 or imap
by marto (Cardinal) on Oct 20, 2010 at 13:10 UTC |