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

Adding Attachments

As noted in Table 21.3, you can also use the <cfmailparam> tag to add a file attachment to a mail message. Simply place a <cfmailparam> tag between the opening and closing <cfmail> tags, specifying the attachment’s filename with the file attribute. The filename must be provided as a fully qualified file-system path, including the drive letter and volume name. It can’t be expressed as a relative path or URL.

Note

The filename you provide for a file must point to a location on the ColdFusion server’s drives (or a location on the local network). It can’t refer to a location on the browser machine. ColdFusion has no way to grab a document from the browser’s drive. If you want a user to be able to attach a file to a <cfmail> email, ...

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