Not sure if this is the best Idea, but since mail generated
by
coldfusion goes into the 'mail' folder under the coldfusion
directories
before it is sent out. One could theoretically put a watch on
the
folder and not process anything until the mail message is
sent, when it
disappears from the folder.
Something like this pseudo-code.
<cfloop
condition="#fileExists(mailFile.in.mail.folder)#">
sleep for a couple of seconds.
</cfloop>
only1reddog wrote:
> I'm trying to mail a file and then delete it in same
page.
> The file gets deleted before the file is attached and
sent completely.
> Can I make the delete wait untill the attach is
completed?