cfmailparam behaviour change in CF9.01
Since upgrading a server from ColdFusion 8.01 to ColdFusion 9.01 (64 bit standard on Windows) I noticed that files attached to an email using cfmailparam were disappearing off my filesystem, when previously this hadn't happened. So I wrote a quick test to prove that the behaviour had changed.
<cfmail
to="john.whish@madeupdomain.com"
from="john.whish@madeupdomain.com"
subject="cfmailparam cf9.01 bug?"
type="html">
<cfmailparam
file="cfbox.jpg"
contentid="cfbox"
disposition="inline">
Testing behaviour of cfmailparam in CF9.01<br />
<br />
In CF8.01 this code would embed the image, but not delete it.<br />
<br />
Tested on:<br />
- CF9.01 Standard 64bit Windows<br />
- CF9.01 Developer 32bit Windows<br />
<img src="cid:cfbox" /><br />
<br />
I have also found that adding 'remove="false"' makes no difference.<br />
<br />
Cheers,<br />
John
</cfmail>
I haven't tried this on ColdFusion 9.0 so not sure when the behaviour changed. It has been reported to the ColdFusion Engineering team thanks to a helpful fuzzy Scot.
- Posted in:
- ColdFusion


Comment by Andy Allan – July 30, 2010
Comment by John Whish – August 01, 2010
kb2.adobe.com/cps/862/cpsid_86263.html
Comment by John Whish – September 01, 2010
Comment by esearing – March 29, 2011