Skip to main content
February 1, 2009
質問

How to cfamail with image in newletter

  • February 1, 2009
  • 返信数 1.
  • 927 ビュー
How can I email web page containing images as newsletter?
I did try with this but image doesn't go.
<cfmail from="yogesh@4eztravel.us" to="yogesh@cviagencyinc.com, subject="my advertisement" type="html">
<cfmailparam contentid="myimage" disposition="Inline" file="#ExpandPath('128_0189.jpg')#" type="image/jpg">
<!---<img src="128_0189.JPG" />--->
<!---<img src="#contentid#" width="300" height="200"/>---><br />

<table width="800" border="1">
<tr>
<td width="99"></td>
<td width="410">This is test </td>
<td width="269">This is test </td>
</tr>
<tr>
<td> </td>
<td align="left" valign="top"><img src="#contentid#" alt="test" width="400" height="300" /></td>
<td> </td>
</tr>
<tr>
<td>This is test </td>
<td>This is test </td>
<td>This is test </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</cfmail>
このトピックへの返信は締め切られました。

返信数 1

Cyril Hanquez
Participating Frequently
April 8, 2009

Try

<cfmail from="yogesh@4eztravel.us" to="yogesh@cviagencyinc.com, subject="my advertisement" type="html">
<table width="800" border="1">
<tr>
<td width="99"></td>
<td width="410">This is test </td>
<td width="269">This is test </td>
</tr>
<tr>
<td> </td>

<td align="left" valign="top"><img src="#GetDirectoryFromPath(GetCurrentTemplatePath('128_0189.JPG')#" alt="test" width="400" height="300" /></td>
<td> </td>
</tr>
<tr>
<td>This is test </td>
<td>This is test </td>
<td>This is test </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</cfmail>