Page 1 of 1

PHP Pop3 class - get the 'From:' header

Posted: Mon Sep 05, 2005 5:02 pm
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.

Posted: Mon Sep 05, 2005 5:27 pm
by feyd
it may be best to ask Manuel himself, on the phpclasses boards: http://www.phpclasses.org/discuss/