?
Solved

Embed Image In a cfmail

Posted on 2004-09-13
1
Medium Priority
?
595 Views
Last Modified: 2013-12-24
I tried to embed an image in my cfmail tags. The difficulty is all my images display using a cfm page, eg:
<cfmail from="test@test.com" to="test2@yahoo.com" subject="Image Display" type="HTML">
<HTML><BODY>
.....
<IMG height=195 hspace=10 src="http://www.test.com/image.cfm?id=10916" width=130 align=left>
<IMG height=195 hspace=10 src="http://www.test.com/image.gif" width=130 align=left>
....
</BODY>
</HTML>
</cfmail>

If I view this email in outlook, both image shows up correctly, but, if i view this email from yahoo mail, the first image doesn't show up, i believe it unable CF executable to run and grab the image, maybe i'm wrong.... any workaround this?

Please help!
0
Comment
Question by:JICrew
1 Comment
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 2000 total points
ID: 12049781
You need to use
<cfmailparam file = "c:\work\logo.gif" type="image/gif">
And in the html refer to the image like <img src="logo.gif"> to embed an image

if you use a cfm page to return an image you need to read the binary content and server it up with <cfcontent type="image/gif" />
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Screencast - Getting to Know the Pipeline
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question