O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Receiving Attachments

As noted previously in Table 21.5, the <cfpop> tag includes an attachmentPath attribute that, when provided, tells ColdFusion to save any attachments to a message to a folder on the server’s drive. Your template can then process the attachments in whatever way is appropriate: move the files to a certain location, parse through them, display them to the user, or whatever your application needs.

Retrieving the Attachments

Listing 21.9 is a revised version of the CheckMailMsg.cfm template from Listing 21.8. This version enables the user to download and view any attachments that might be attached to each mail message. The most important change in this version is the addition of the attachmentPath attribute, which specifies ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required