Re: [PHP] Handling Incoming Email Attachments
[email protected] (Richard Heyes)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
> For handling e-mail in all their sorts (believe me, it is hell), I found > the PECL mailparse the best solution. It can find the attachments and > their MIME-types in a snap. And all the headers are separated too. > > You only have to wrap functions around it to do what you want to do. > > Be sure to validate the attachments and do not rely on the MIME-type > only. People can spoof that kind of files. There's also the PEAR mimeDecode class as well. A PHP solution so it won't require you to reconfigure/compile anything. -- Richard Heyes +----------------------------------------+ | Access SSH with a Windows mapped drive | | http://www.phpguru.org/sftpdrive | +----------------------------------------+