User Guide

300 Chapter 2: ColdFusion Tags
cfmailparam
Description
Attaches a file or adds a header to an e-mail message.
Category
Internet Protocol tags
Syntax
<cfmail
to = "recipient"
subject = "msg_subject"
from = "sender"
...more attributes... >
<cfmailparam
file = "file-name"
type ="media type"
contentID = "content ID"
disposition = "disposition type">
or
<cfmailparam
name = "header-name"
value = "header-value" >
...
</cfmail>
See also
cfmail
, cfmailpart, cfftp, cfhttp, cfldap, cfpop; “Using the cfmailparam tag in
Chapter 39, “Sending and Receiving E-Mail,” in ColdFusion MX Developers Guide
History
ColdFusion MX 6.x: Added the Disposition and ContentID attributes.
ColdFusion MX 6.1: Added the
type attribute.
Attributes
Attribute Req/Opt Default Description
file Required if you do not
specify
name attribute
Attaches a file in a message. Mutually exclusive
with name attribute. The file is MIME encoded
before sending.
name Required if you do not
specify
file attribute
Name of header. Case-insensitive. Mutually
exclusive with file attribute.