Im not sure you can do it, however have you investigated the : <cfheader name="Content-Disposition" value="inline; filename=someFile.xls"> <cfcontent type="application/vnd.ms-excel" file="c:\temp\someFile.xls">
This example triggers a download of an Excel file. The user will be prompted with an option to save the file or open it in the browser. Once opened they can either save or close on the action of either teh file is then removed from the host, you could maybe add a link to your email so that they can retrieve the excel file not the best solution i know. Jose Diaz On 10/5/06, Peterson, Chris <[EMAIL PROTECTED]> wrote: > > Thanks for the thoughts all, I just ended up writing a temp file and > locking a named variable so I don't have 2 processes overrunning the > same file. > > Chris > > -----Original Message----- > From: Alan Rother [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 05, 2006 10:03 AM > To: CF-Talk > Subject: Re: Creating and emailing excel file without writing a temp > file > > The problem is, your mail server actually needs to have a physical file > on > an accessible hard drive to send as an attachment. Remember, ColdFusion > does > not send the emails itself, it relies on an SMTP server to do that. > -- > Alan Rother > Adobe Certified Advanced ColdFusion MX 7 Developer > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255669 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

