PHP Pop3 class - get the 'From:' header

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ska
Forum Commoner
Posts: 41
Joined: Mon Sep 05, 2005 4:54 pm

PHP Pop3 class - get the 'From:' header

Post by ska »

Hi,

I'm giving Manuel Lemos's Pop3 PHP class a go. I want to query a pop3 account and then store the email in a MySQL database. The bit I'm trying to do now is split the email headers into variables. I can see they are being read into an array, but I'm not up on email header information enough to know how to consitently say which one is the 'From:' line. So for example, if I just wanted the body, subject and from data, how would I extract that?

Tips, pointers much appreciated.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it may be best to ask Manuel himself, on the phpclasses boards: http://www.phpclasses.org/discuss/
Post Reply