Right. Lookup cfpop. It makes a query of your inbox. Then, you perform whatever action that you want based on the subject.
On Wed, Jul 27, 2011 at 9:27 AM, Shannon Rhodes <shan...@rhodesedge.com> wrote: > > I was asked today if there's a way to use ColdFusion to basically email a > document to an application rather than users having to save attachments to > their systems and then upload to a CF application from there. > > So you'd email a file from, say, Outlook, with an identifying number in the > subject line, and then automatically upload the attachment and otherwise run > business logic to associate the file to the correct ID in the application > (authenticating based on user's email address). It's easy enough to use CF > to upload a file and run business logic, but I'm stuck on the idea of how > it's going to parse out this information in the first place. I'm guessing > you'd set up an email account to receive such files, then run a task to > periodically comb through this account's inbox and somehow "read" the subject > lines, from addresses, point to the attachment for upload, then archive the > message. Anyone done anything like this or have any idea how you'd approach > it? Thanks. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346361 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm