Reputation: 397
My code is as below,
<cfmail
to="[email protected]"
from="[email protected]"
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>
I got this to work, however the problem now is image is showing up as an attachment, NOT inline (mail client : Outlook 2010). Any suggestions?
Upvotes: 4
Views: 1989
Reputation: 326
you need to add a type attribute to your cfmail tag
<cfmail
to="[email protected]"
from="[email protected]"
subject="email with image"
type="html">
Upvotes: 7