Coldfusion 使用CFMAIL标记发送带有图像的电子邮件
我的代码如下:Coldfusion 使用CFMAIL标记发送带有图像的电子邮件,coldfusion,coldfusion-8,cfmail,Coldfusion,Coldfusion 8,Cfmail,我的代码如下: <cfmail to="sender@xyz.com" from="receiver@xyz.com" subject="email with image"> <img src="cid:pClip" width="350" height="85" alt="" /> there is an image above this msg. <cfmailparam file="#ExpandPath(
<cfmail
to="sender@xyz.com"
from="receiver@xyz.com"
subject="email with image">
<img src="cid:pClip" width="350" height="85" alt="" />
there is an image above this msg.
<cfmailparam file="#ExpandPath('PaperClip.jpg')#"
contentid="pClip"
disposition="inline" />
</cfmail>
在这个消息上面有一个图像。
我让它工作,但现在的问题是图像显示为附件,而不是内联(邮件客户端:Outlook 2010)。有什么建议吗?您需要在cfmail标签中添加一个type属性
<cfmail
to="sender@xyz.com"
from="receiver@xyz.com"
subject="email with image"
type="html">
yupe这就是我所缺少的。谢谢。我的代码中已经有了下面的解决方案(type=“html”),但您的IMG嵌入代码帮助我解决了Outlook中的附件问题。你的问题解决了我的问题。谢谢