CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
POP3 Retrieval

 



andy7t
User

Feb 17, 2004, 1:25 PM

Post #1 of 2 (536 views)
POP3 Retrieval Can't Post

Hello,

I am trying to use Net::Pop3

$pop = Net::POP3->new('mail.torchhost.com', Timeout => 60);
$username="username";
$password="pass";
if ($pop->login($username, $password) > 0) {
my $msgnums = $pop->list; # hashref of msgnum => size
foreach my $msgnum (keys %$msgnums) {
my $msg = $pop->get($msgnum);
print @$msg;
}
}

This is fine.

This prints a whole list of stuff- but it's missing one major thing- the EMAIL address that's it's from.

It gives the name of who it is from, but not who it is from.

This is the output i am getting from my script:
http://support.torchhost.com/test.txt

As you can see- there is no email address given.

Maybe as well, someone could give me some pointers into simply recording:
Email, Subject, Message.

I don't want anything fancy to be stored- just the message and email, because i need to store it into a MySQL database.

Thanks


andy7t
User

Feb 24, 2004, 3:05 AM

Post #2 of 2 (519 views)
Re: [andy7t] POP3 Retrieval [In reply to] Can't Post

Sorry!

I've found it.

I feel like a right idiot Blush


The email address was there all along: <hello@me.com>

The browser thought it was a HTML tag!

Andrew

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives