PHP Pop3 class - get the 'From:' header
Posted: Mon Sep 05, 2005 5:02 pm
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.
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.