Re: Deleting Attachments Immediately After CFMAIL

2008-04-04 Thread Nathan Wells
It looks like this has been addressed in ColdFusion 8.0.1; from the release notes: The cfmail and cfmailparam tags now have a remove attribute that tells ColdFusion to remove any attachments after successful mail delivery. Complete release notes:

Re: Deleting Attachments Immediately After CFMAIL

2007-10-27 Thread Daniel Roberts
How about keep a list of email attachments that need to be deleted. This could be in application or server scope. After an email is spooled up, add the attachement to the list or array. Have a scheduled task look through your spool folder every so often and if the attachment isn't in any of the

Re: Deleting Attachments Immediately After CFMAIL

2007-10-26 Thread Jochem van Dieten
Nathan Wells wrote: Does anybody know how attachments work in CF 8? Same as in 7. Has anyone heard of future plans by Adobe to allow attached files to be automatically deleted after the spool file has been processed. Maybe something similar to the cfcontent tag? cfmailparam

RE: Deleting Attachments Immediately After CFMAIL

2007-10-26 Thread Dan G. Switzer, II
Nathan, Thanks a lot for the references. They both look very promising for our needs. Our applications don't send that many emails, but I knew I wasn't the first one to run into problems like this. You saved me some time searching in the dark. I went ahead and blogged an fully working example

Re: Deleting Attachments Immediately After CFMAIL

2007-10-26 Thread Jochem van Dieten
Dan G. Switzer, II wrote: I went ahead and blogged an fully working example using the technique Jon Wolski pointed out on Charlie Arehart's blog: http://blog.pengoworks.com/blogger/index.cfm?action=blog:610 My example also shows using embedded images in an HTML message. Unfortunately your

Deleting Attachments Immediately After CFMAIL

2007-10-25 Thread Nathan Wells
Is there any way to safely delete files that were attached using a cfmailparam tag to an email that was generated with the cfmail tag? If you delete the attached file too soon, then the file doesn't get attached to the email, at best, and at worst, the email fails altogether. cfmail

RE: Deleting Attachments Immediately After CFMAIL

2007-10-25 Thread Dan G. Switzer, II
Nathan, Is there any way to safely delete files that were attached using a cfmailparam tag to an email that was generated with the cfmail tag? If you delete the attached file too soon, then the file doesn't get attached to the email, at best, and at worst, the email fails altogether. cfmail

Re: Deleting Attachments Immediately After CFMAIL

2007-10-25 Thread Ben Doom
Without having tried it, the first thing that springs to mind is to turn off mail spooling. In theory, attaching files should not be that much of a bother. I think you have to add a header specifying filename, MIME header, etc., and you have to add the file as a base-64 encoded block at the

Re: Deleting Attachments Immediately After CFMAIL

2007-10-25 Thread Nathan Wells
Nathan, Adobe did this to speed up mass e-mailings that all use a common set of attachments--which is common when doing bulk mailings. Obviously in this case there's considerably less disk space used and does speed things up. However, when you're trying to send dynamically generated content it's