Solved

Embed Image In a cfmail

Posted on 2004-09-13
1
567 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 500 total points
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now