doing very high volume mailings (like 1000's per hour) then you may
have to look at deleting them every so often.
Stace
_____
From: Scott Brady [mailto:[EMAIL PROTECTED]
Sent: October 24, 2003 11:06 AM
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]

