cfmailparam behaviour change in CF9.01

July 30, 2010

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.


3 comments

  1. It works fine on 9.0

    Comment by Andy Allan – July 30, 2010
  2. Thanks for the clarification Andy.

    Comment by John Whish – August 01, 2010
  3. This has now been patched in Cumulative Hotfix 1 (CHF1) for ColdFusion 9.0.1:
    kb2.adobe.com/cps/862/cpsid_86263.html

    Comment by John Whish – September 01, 2010

Leave a comment

If you found this post useful, interesting or just plain wrong, let me know - I like feedback :)

Please note: If you haven't commented before, then your comments will be moderated before they are displayed.