I just set up a scheduled task to run once a day to delete all the contents of the attachment directory.
Brian -----Original Message----- From: Peter Galipo [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 May 2005 11:13 AM To: CFAussie Mailing List Subject: [cfaussie] Re: deleting attachments I found the answer... Note: The cfmail tag does not make copies of attachments when spooling mail to disk. If you use the cfmail tag to send a message with an attachment with spooling enabled and you use the cffile tag to delete the attachment file, ColdFusion might not send the mail because the mailing process might execute after the file was is deleted. (When this happens, the mail log includes a FileNotFound exception and the e-mail is not sent.) You can prevent this problem by setting SpoolEnable="No" in the attribute or disabling spooling in the ColdFusion MX Administrator. Disabling spooling causes the e-mail to be delivered immediately. >>> [EMAIL PROTECTED] 17/05/2005 8:51 am >>> Morning All, I'm building an app that sends an email with attachments. The attachments of the email are uploaded by the users. so my logic goes as follows: - user uploads attachments - when all attachments are uploaded an email is created with the attachments. - the email is sent - the attachments are then deleted. But what I'm finding is sometimes the email arrives, sometimes it doesn't. After checking the mail logs I discovered that sometimes the attachments were deleted before the email was sent. So I'm guessing that the spooled email takes a little time. In that time the attachments were deleted. Has anyone come up against this before? What's the best way to tackle this. Maybe a job that runs once a day to delete the attachments, instead of deleting them after the email? Thanks, Pete --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ ----------------------------------------------------------------------------------- This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of its related entities "Suncorp". Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13 11 55 or at suncorp.com.au. The content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system. If this e-mail constitutes a commercial message of a type that you no longer wish to receive please reply to this e-mail by typing Unsubscribe in the subject line. --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
