The system that I am creating takes emails, breaks them apart and enters the various information into catagories in an mySQL database. Now this is fine, sorted. However what I'd like to do is be able to take any attachments that come with the email to be saved onto the server in a directory and then their location noted in the mySQL database.
I've been looking around but every script and tutorial I can find always seems to say about reading the attachments directly from the emails or stripping them out completely.
Can anyone help in pointing me in the right direction?
I'd be more than happy to return the favor in any way I can!