say, 1 hour, every time you create a new email, should do the trick with
only a little extra load.
-----Original Message-----
From: Scott Brady [mailto:[EMAIL PROTECTED]
Sent: 24 October 2003 16:06
To: CF-Talk
Subject: Deleting file after e-mailing it
I'm working on a part of an application where I need to create a
temporary Excel file and e-mail it to a specific user.
I've got that working, but since these are temporary files, I
obviously don't want them cluttering up the server and taking up space.
I thought I could just delete the file after the <cfmail> tag, but it
would appear that CF doesn't embed the file in the mail until it's
spooled. (I get a mail log error that the attachment file doesn't
exist. Commenting out the file deletion allows the mail to be sent.)
I'm using <cfmailparam> to attach the file, rather than the
mimeattach attribute.
Aside from using a scheduled task to periodically run through
and delete all of the temporary files, is there another option I'm
overlooking? (I'll do the scheduled task if I have to, but changing any
server setting is a bureaucratic nightmare sometimes.)
Thanks.
Scott
---------------------------
Scott Brady
http://www.scottbrady.net/
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

