Contents

cfmailpart

Description

Indicates a single part of a multi-part e-mail message, specifying the MIME type and (optionally) the character encoding.

Category

Other

Implemented

Usage Syntax

<cfmailpart  
	type="String"
	[wraptext="number"]
	[charset="String"]
 />

[] = Optional attribute

Attributes

Name Type Required Default Description
type String Yes The MIME media type of the part
wraptext number No Specifies the maximum line length, in characters of the mail text
charset String No The character encoding in which the part text is encoded

Example Usage

<---  Multi-part message: --->
<cfmail from="sender@host"
		to="recipient@host"
		subject="New Site"
>
	<cfmailpart type="text">Hello,
		Please visit our new site at http://localhost/</cfmailpart>

	<cfmailpart type="html">
		<p>Hello,</p>
		<p>Please visit our new site at <a href="http://localhost/">localhost</a></p>
	</cfmailpart>
</cfmail>