Name
cfmailpart
Synopsis
<cfmail>
[<cfmailparam>]
[<cfmailpart>
message body
</cfmailpart>]
...
</cfmail>
Used
within a cfmail
block to specify a part of a
multi-part message. Multi-part messages are typically used to send
multiple versions of the same message. For example, it may be
desirable to send both a plain text and an HTML version of a message.
To specify multiple parts, use one cfmailpart
tag
pair for each part. If you send a multi-part message using
cfmailpart
, all message contents must appear
within cfmailpart
tags. Any content outside the
tag body is ignored.
Attributes
-
charset="
charset
"
Specifies the character set to use in encoding the message part. The most common character sets are
UTF-8
,UTF-16
,UTF-16BE
,UTF-16LE
,US-ASCII
, andISO-8859-1
. You may use any character set supported by your JRE. Optional. The default is the character encoding specified in thecfmail
tag.- type="text|plain|html|
mime_type
" MIME type of the message part. You can specify
text
(text/plain),plain
(text/plain),html
(text/html), or any valid MIME type you wish. Optional.- wraptext=”
number_of_characters
" Specifies the maximum number of characters to allow per line of the message part. If a line is longer than the specified number of characters, an attempt is made to break the line by inserting a line break at the nearest whitespace character (space, tab, etc) before the character limit. If the line contains no whitespace characters before the maximum number of characters per line, a line ...
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.