Looking for how to extract email attachments with PHP? I was too, because I needed to extract pictures from mail that came in. I’ve been looking around, and it looks like the best thing’s this: PHP Mime Mail Parser Class using PHP’s MailParse Extension. It’s an open-source project hosted on Google Code.
How To Extract Email Attachments With PHP