3

I'm trying to show an image when sending an email. Sending the email works, but in the image it shows blank. I know the 'src' URL is correct because I have it in other places and it shows. How can I get it to work when sending an email?

<CFMAIL TO="email"
        FROM="email"
        SUBJECT="test"
        TYPE="HTML">
        <table>
        <tr><img src="icon_star.gif" alt="star" width="10" height="10">
            <td valign="top" ><font face="Arial, Helvetica, sans-serif" size="2">   <strong>Rising Star Award: #risingstar#</strong></font></td>
            <td valign="top" ><font face="Arial, Helvetica, sans-serif" size="2"><strong>#risingstar_ave#</strong></font></td>
        </tr>
        ....more code ...
Fish Below the Ice
  • 1,273
  • 13
  • 23
user3591637
  • 499
  • 5
  • 20

2 Answers2

6

Your image needs to be available via a full url.

<img src="http://www.MyDomain.com/images/icon_star.gif" 
    alt="star" 
    width="10" 
    height="10">
Evik James
  • 10,335
  • 18
  • 71
  • 122
4

you'll need an absolute path to the file so it can find it when the person opens their email.

example:

<img src="http://monkeysite.com/icon_star.gif" alt="star" width="10" height="10">
Frank Tudor
  • 4,226
  • 2
  • 23
  • 43
  • Frank, I think I beat your answer by 10 seconds. – Evik James Jun 17 '14 at 00:52
  • 1
    You came in at 21:15:30 mine...21:14:32 (58 second ahead of you), but who's counting. Matt actually had 'an answer' before either of us' minus the example (as a comment). Either way I am ok with all this...Sometimes you get that sweet green check mark next your answer and sometimes you don't :) – Frank Tudor Jun 17 '14 at 01:48