The <cfmailparam> tag has a new attribute in CF 8 to delete an attachment after it has been sent.
E.g., <cfmailparam file="/tmp/attachment.txt" remove="true"> Eric On Fri, May 2, 2008 at 10:22 AM, Richard Meredith-Hardy <[email protected]> wrote: > Don't worry, found it. > > In this case I was copying a file from one with a uuid name to one with a > sensible name to send, sending it in cfmail, and then deleting it. > > In CF5 this was fine, but the copy was clearly being deleted in cf8 before > cfmail got round to actually dealing with the attached file, hence the > error. > > Richard > >> -----Original Message----- >> From: Richard Meredith-Hardy [mailto:[email protected]] >> Sent: 02 May 2008 12:29 >> To: CF-Talk >> Subject: mail attachments prob >> >> Sending a mail with an attachment. (works fine without) >> >> Can someone explain why code which works fine in CF5 won't >> work in CF8? >> >> Error in mail log is: IOException while sending message >> >> I can't see anything immediately obvious from the >> documentation, a mime type or something? (these attachments >> are always pdf's) >> >> Thanks >> >> Richard >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322307 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

