Solved

Embed Image In a cfmail

Posted on 2004-09-13
1
579 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 500 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

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…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 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