Whatever message this page gives is out now! Go check it out!
<cfmail
... >
(Optional cfmailparam entries)
<cfmailpart
charset="character encoding"
type="mime type"
wraptext="number"
>
Mail part contents
</cfmailpart>
...
</cfmail>Attribute | Req/Opt | Default | Description |
charset | Optional | Character encoding specified by charset attribute of cfmail tag | The character encoding in which the part text is encoded. The following list includes commonly used values:
|
type | Required | The MIME media type of the part. Can be a can be valid MIME media type or one of the following:
| |
wraptext | Optional | Do not wrap text | Specifies the maximum line length, in characters of the mail 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. Note: We recommend that you do not use wraptext when type="HTML". In case of type="HTML" and if you specify wraptext, then this attribute will be ignored. |
<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>