.NET General

Moderators: None (Apply to moderate this forum)
Number of threads: 749
Number of posts: 1301

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Embed images in emails using ColdFusion Posted by elizas on 7 May 2010 at 5:15 AM
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

Thread Tree
elizas Embed images in emails using ColdFusion on 7 May 2010 at 5:15 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.