>From: Dave M G [mailto:mar...@autotelic.com]
>Sent: 07 September 2009 14:26
>To: Richard Heyes
>Subject: Re: [PHP] Taking body of an email and storing it in MySQL database
>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
>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
>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.
Take a look on phpclasses.net, they have classes which connect via POP3 and
give you arrays of messages back.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php