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/
