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

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.