javaguy Posted October 26, 2005 Posted October 26, 2005 Suppose I want to be able to e-mail an image file to an address at my domain and have it automagically dropped into a particular directory. I know how to write a PHP filter to read stdin and parse it 'n' stuff, but I have no idea how to grab the attachments and save them off. Does anybody know how to do this? Thanks! Sam Quote
stevevan Posted October 27, 2005 Posted October 27, 2005 Welcome to the forums Sam. Sorry I don't have an answer for you, but I'm sure someone will be along shortly that can help you out! Quote
TweezerMan Posted October 27, 2005 Posted October 27, 2005 Welcome to the forums, Sam! From what I've seen in both Perl and PHP, there are libraries available to interact with a mailbox, grab any e-mails sitting in the account, extract any attachments, and save them where you want. I have not seen any kind of code that would do the same thing from a filter script though. Quote
javaguy Posted November 1, 2005 Author Posted November 1, 2005 From what I've seen in both Perl and PHP, there are libraries available to interact with a mailbox, grab any e-mails sitting in the account, extract any attachments, and save them where you want. I have not seen any kind of code that would do the same thing from a filter script though. Okay, I found a nifty little script here to do that. I haven't tried it yet but will let you know when I get it working. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.