Tags · Functions · Objects
Lucee Tag Reference
Choose a tag:

Tag <CFMAILPARAM>

Can either attach a file or add a header to a message. It is nested within a cfmail tag. You can use more than one cfmailparam tag within a cfmail tag.

Body

This tag can't have a body.

Example

	<cfmailparam
		[content="any"]
		[contentid="string"]
		[disposition="string"]
		[file="string"]
		[name="string"]
		[remove="boolean"]
		[type="string"]
		[value="string"]>
	
This tag is also supported within cfscript
	<cfscript>
		mailparam
		[content="any"]
		[contentid="string"]
		[disposition="string"]
		[file="string"]
		[name="string"]
		[remove="boolean"]
		[type="string"]
		[value="string"];
	</cfscript>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
content any No send given value as attachment 
contentid string No The Identifier for the attached file. This ID should be globally unique and is used to identify the file in an IMG or other tag in the mail body that references the file content. 
disposition string No How the attached file is to be handled. Can be one of the following:
attachment: presents the file as an attachment.
inline: displays the file contents in the message. 
file string No Attaches the specified file to the message. This attribute is mutually exclusive with the
name attribute. 
name string No Specifies the name of the header. Header names are case insensitive. This attribute is mutually
exclusive with the file attribute. 
remove boolean No remove attachment from filesystem after the mail is successfully sent 
type string No The MIME media type of the part. 
value string No Indicates the value of the header.