MACROMEDIA COLDFUSION MX 61-CFML Reference page 249

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

Advertisement

Attribute Req/Opt
wraptext
Optional
charset
Optional
Usage
Use this tag to create mail messages with alternative versions of the message that duplicate the
content in multiple formats. The most common use is to send a plain text version of the message
that can be read by all mail readers followed by a version formatted in HTML for display by
HTML-compatible mail readers. Specify the simplest version first, with more complex versions
afterwards. For more information, see www.ietf.org/rfc/rfc2046.txt.
Example
<h3>cfmailpart Example</h3>
<cfmail from = "peter@domain.com" To = "paul@domain.com"
Subject = "Which version do you see?">
<cfmailpart
type="text"
wraptext="74">
You are reading this message as plain text, because your mail reader
does not handle HTML text.
</cfmailpart>>
<cfmailpart
type="html">
<h3>HTML Mail Message</h3>
<p>You are reading this message as <strong>HTML</strong>.</p>
<p>Your mail reader handles HTML text.</p>
</cfmailpart>
</cfmail>
Default
Description
Do not
Specifies the maximum line length, in characters of the mail text.
wrap text
If a line has more than the specified number of characters,
replaces the last white space character, such as a tab or space,
preceding the specified position with a line break. If there are no
white space characters, inserts a line break at the specified
position. A common value for this attribute is 72.
Character
The character encoding in which the part text is encoded. The
encoding
following list includes commonly used values::
specified
• utf-8
by
• iso-8859-1
charset
• windows-1252
attribute
• us-ascii
of
cfmail
• shift_jis
tag
• iso-2022-jp
• euc-jp
• euc-kr
• iso-2022-kr
• big5
• hz-gb-2312
• euc-cn
• utf-16
For more information on character encodings, see:
www.w3.org/International/O-charset.html.
cfmailpart
249

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents