RE: Taking body of an email and storing it in MySQL database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-----Original Message-----
>From: Dave M G [mailto:martin@xxxxxxxxxxxxx] 
>Sent: 07 September 2009 14:26
>To: Richard Heyes
>Cc: php-general@xxxxxxxxxxxxx
>Subject: Re:  Taking body of an email and storing it in MySQL database
>
>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,

Take a look on phpclasses.net, they have classes which connect via POP3 and give you arrays of messages back. 

HTH
J


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux