Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Embed Image In a cfmail

Posted on 2004-09-13
1
Medium Priority
?
591 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 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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

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

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

610 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