I have a web-based form that requires the user to upload a document. Everything
works fine until I try and delete the document after delivery. With the delete
action enabled the email does not get delivered. I have place the action=delete
inside and outside of the /cfmail
cfif
I've had this same issue before. I believe the file was being deleted before
the mail was fully processed. I think the solution I came up with was to place
the file in a temporary directory then run a batch program to delete the files
from that directory in the nightly run.
Robert Harrison
what you have to remember is that the mail gets added to the spool, so it
may not get sent for a while depending how big the queue is, so you cannot
just delete an attachment right away otherwise you are deleting it
immediately even before the mail has even sent.
You should setup a scheduled task
Another alternative, if you are using CF 8 and above, is the content
attribute of the cfmailparam tag. You can use this to attache the binary
data itself as an attachment, that way you do not have to rely on a file
existing on the server at the time the mail is sent. Read the file into a
Hi,
Just curious on the makeup of the list participants...are we mainly employees
of
companies using CF or are there any hosting companies/ISPs in the group?
--Ben
--
Ben Conner b...@webworldinc.com
Web World, Inc. 888-206-6486 or
PO Box 1122 480-704-2000
5 matches
Mail list logo