Jump to content

Recommended Posts

Posted

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

Posted

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!

Posted

Welcome to the forums, Sam! :P

 

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.

Posted
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.

 

:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...