coldfusioncfmail

Show an image when using cfmail?


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 ...

Solution

  • 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">