Description:
Normally when we send an image through an email, we send it either as an attachment or external link. In addition to these two we have one more way to do the same in ColdFusion, i.e. sending embedded images in an email.
Further Details:
Using CFMAIL tag attributes we provide all the details for sending an email programmatically like TO, FROM, MAILSERVER etc. The body of the email goes in between the starting and ending tags of CFMAIL. CFMAILPARAM (sub tag for CFMAIL) in ColdFusion is normally used to attach a file or add a header to a message. Using this tag, we can send embedded images in an email.
Example Code:
<cfmail
to="{recipient email address}"
from="{sender email address}"
subject="Embedded Image Example"
type="html">
<h2>Image Embed Example</h2>
<p><img src="cid:img_id" width="300" height="300" alt="" /><br /></p>
<!--- Embed image from the local file system --->
<cfmailparam
file="{path to the image file}"
contentid="img_id"
/>
</cfmail>
http://www.mindfiresolutions.com/Embed-images-in-emails-using-ColdFusion-595.php