Cfmailparam - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

cfmailparam

Description
Attaches a file or adds a header to an e-mail message. Can only be used in the
use more than one
Category
Forms
tags,
Internet Protocol tags
Syntax
<cfmail
to = "recipient"
subject = "msg_subject"
from = "sender"
...more attributes... >
<cfmailparam
file = "file-name"
type ="media type">
or
<cfmailparam
name = "header-name"
value = "header-value" >
...
</cfmail>
See also
cfmail, cfmailpart, cfftp, cfhttp, cfldap,
History
ColdFusion MX 6.1: Added the
Attributes
Attribute Req/Opt
file
Required if you do not
specify
type
Optional
name
Required if you do not
specify
value
Optional
Example
<h3>cfmailparam Example</h3>
<p>This view-only example uses cfmailparam to attach files and add header to
a message.</p>
<cfmail from = "peter@domain.com" To = "paul@domain.com"
Subject = "See Important Attachments and Reply">
246
Chapter 2: ColdFusion Tags
tag within a
cfmailparam
attribute.
type
Default Description
attribute
name
attribute
file
tag.
cfmail
cfpop
Attaches file to a message. Mutually exclusive with
attribute. The file is MIME encoded before sending.
The MIME media type of the part. Can be a valid MIME
media type or one of the following:
• text specifies text/plain type
• plain specifies text/plain type
• html specifies text/html type
Note: For a list of all registered MIME media types,
see www.iana.org/assignments/media-types/
Name of header. Case-insensitive. Mutually exclusive
with
attribute.
file
Value of the header.
tag. You can
cfmail
name

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents