Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access