Re: Taking body of an email and storing it in MySQL database
| From: | Richard Heyes | Date: | Mon, 07 Sep 2009 12:41:12 +0000 |
| Subject: | Re: Taking body of an email and storing it in MySQL database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297755@lists.php.net to get a copy of this message | ||
Hi,
> ...
Sounds like you may have a MIME (an HTML email or one with attachments
etc) email to decode. What you can do is use the PEAR class
Mail_mimeDecode ( http://pear.php.net/package/Mail_mimeDecode
). Pass
it the entire email (headers and all) and it will try to decode it for
you.
--
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 5th September)
Lots of PHP and Javascript code - http://www.phpguru.org