Solved

Embed Image In a cfmail

Posted on 2004-09-13
1
570 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
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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OpenLDAP set password to expire 7 636
Why addon domain redirects to the original domain? 8 68
Web Site Hosting 10 88
Public IP Address Amazon Servers 2 56
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…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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