Forum Moderators: coopster

Message Too Old, No Replies

Extract attachment from email and upload to FTP

         

Bluesprocket

1:51 am on Feb 13, 2011 (gmt 0)

10+ Year Member



Hi I am working on a client system for a customer that allows the client to receive a pdf in an email. What we want to do is extract that attachment from the email and add it to either a directory or an ftp site so that the client will have access to it. The PDF are smal and with have timestamps as the filenames...

Has anyone heard of anything in PHP that can handle this type of function?

charles49

2:58 am on Feb 13, 2011 (gmt 0)

10+ Year Member



You could write a custom PHP script to do it, if you have the skills.

The script would:
- Connect to the e-mail account via POP3.
- Download the e-mail(s).
- Extract the attachment from e-mail, and save it somewhere. (Will require decoding it.)
- Upload via FTP.

If you don't have the skills to do it yourself, you could probably get someone to do it for cheap on oDesk.

Bluesprocket

5:11 am on Feb 13, 2011 (gmt 0)

10+ Year Member



I have the skills but I was hoping there was some open source package someone knew about. But your solution makes sense also. Thanks!