Richard, Thank you for responding. > Sounds like you may have a MIME (an HTML email or one with attachments > etc) email to decode. No, the mails should be in plain text format. I probably didn't describe my issue properly because I don't understand it fully. If I can assume all the mails I am receiving are in plain text format - which they should be because it is within a controlled environment - can I use PHP to pull out each email from the POP server essentially as a text file? I need to find out the sender and subject line, but other than that, the rest of it (including headers) I just want to store in MySQL. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php