Hello again,
Hopefully a quick question. I want to be able to get into a remote mailbox at godaddy. I was going to use PHP for this, but the server I have doesn't have imap_open() and I found it's not too easy to add it to an already running PHP install.
With that said, I found numerous posts about Mail::POP3Client() figured I'd give it a try. I first ran it and found it was not installed. I found a blogpost about cpan and got it installed. Now when I run it, it pauses as if it is doing something, but then I get this error:
Use of uninitialized value $line in pattern match (m//) at /usr/local/share/perl/5.14.2/Mail/POP3Client.pm line 1078, <GEN0> line 2.
use Mail::POP3Client; use strict; use warnings; my $pop = new Mail::POP3Client( USER => "{username}", PASSWORD => "{mypassword}", HOST => "pop.secureserver.net" ); my $i=1; for($i=1;$i<=$pop->Count();$i++){ foreach($pop->Head($i)){ /^(From|Subject):\s+/i && print $_, "\n"; } } $pop->Close();
Thanks! I hope I get this working!
In reply to Getting into remote mailbox Mail::POP3Client() by freddythunder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |