Check out the documentation for <cfmailparam ...> it
gives a couple of
examples.
<h3>cfmailparam Examples</h3>
<p>This view-only example uses cfmailparam to 1) add
header to a message
and 2) attach files and 3) to return a receipt to the
sender.</p>
<cfmail from = "peter@domain.com" To = "paul@domain.com"
Subject = "See
Important Attachments and Reply">
<cfmailparam name = "Importance" value = "High">
Please review the new logo. Tell us what you think.
<cfmailparam file = "c:\work\readme.txt"
type="text/plain">
<cfmailparam file = "c:\work\logo.gif"
type="image/gif">
<cfmailparam name="Disposition-Notification-To"
value="peter@domain.com">
</cfmail>
<p>This view-only example displays an image in the body
of
an HTML message.</p>
<cfmail type="HTML"
to = "#form.mailto#"
from = "#form.mailFrom#"
subject = "Sample inline image">
<cfmailparam file="C:\Inetpub\wwwroot\web.gif"
disposition="inline"
contentID="image1">
<P>There should be an image here</p>
<img src="cid:image1">
<p> After the picture</p>
</cfmail>