[PHP] Handling Incoming Email Attachments

2008-05-06 Thread Nirmal Jayasinghe
hello all, I'm trying to figure out a way to manipulate incoming email attachments with PHP. There'll be a special email address to which the emails with the attachments would be sent, with a number specified in the subject line. What I need to do is to grab the attachment (a photo), rename it

Re: [PHP] Handling Incoming Email Attachments

2008-05-06 Thread Aschwin Wesselius
Nirmal Jayasinghe wrote: hello all, I'm trying to figure out a way to manipulate incoming email attachments with PHP. There'll be a special email address to which the emails with the attachments would be sent, with a number specified in the subject line. What I need to do is to grab the

Re: [PHP] Handling Incoming Email Attachments

2008-05-06 Thread Richard Heyes
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