As a "look under the covers" tutorial for myself I am building a PHP script to gather emails from a POP3 mailbox. While attempting to make use of binary attachments I am stuck trying to figure out what to do with the attachment information.
Given a string that would be gathered from an email:
Content-Type: image/jpeg; name=trans2.jpg
Content-Disposition: attachment; filename=trans2.jpg
Is there a way to save off the data to disk so that it would be in a usable format?
posted date: 2008-12-19 05:10:00