Re: Email attachment problem
Thanks Guys Does CFsleep pause the server, which would impact other users, or just the page. My prefernce would be for a page pause with hour glass indicating when the mail was sent, followed by a confirmation page. It seems though that the simplest ideal would be Russ' and set up a schedule to clean out the Temp directory each day. Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353788 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Email attachment problem
Does CFsleep pause the server, which would impact other users, or just the page. It doesn't pause the entire server, but pausing the page does impact other users. CF has a set number of threads handling requests. You can control this number in the CF Admin. Whatever that number is set to, that's how many threads are available. To process a page, CF assigns a thread to it, and that thread can't do anything else (like service other user requests) until it has finished with that page. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353789 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Email attachment problem
Hi folks I have an online classroom that enables participants to email each other including sending attachments. The attachments are uploaded to a private temporay directory and then attached to the email. After the email is sent i want to delete the file from the temp directory. If the file is large (several mb) and the list is large the delete function interferes with the cfmail program, by deleting the file before all the email is processed. Is there a way to tell when the email is sent to automatically delete the temporary file and/or is there a way to set up routine that would automatically delete the temp directory every day. Thanks Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353766 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Email attachment problem
Use a delay between sending the file and deleting it, like CFSleep. The file is being deleted too quickly. I usually give it about 15 minutes. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Rob Voyle [mailto:robvo...@voyle.com] Sent: Friday, January 04, 2013 1:27 PM To: cf-talk Subject: Email attachment problem Hi folks I have an online classroom that enables participants to email each other including sending attachments. The attachments are uploaded to a private temporay directory and then attached to the email. After the email is sent i want to delete the file from the temp directory. If the file is large (several mb) and the list is large the delete function interferes with the cfmail program, by deleting the file before all the email is processed. Is there a way to tell when the email is sent to automatically delete the temporary file and/or is there a way to set up routine that would automatically delete the temp directory every day. Thanks Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353773 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Email attachment problem
Setup a scheduled task to delete files older than x Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Jan 4, 2013 7:34 PM, Robert Harrison rob...@austin-williams.com wrote: Use a delay between sending the file and deleting it, like CFSleep. The file is being deleted too quickly. I usually give it about 15 minutes. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Rob Voyle [mailto:robvo...@voyle.com] Sent: Friday, January 04, 2013 1:27 PM To: cf-talk Subject: Email attachment problem Hi folks I have an online classroom that enables participants to email each other including sending attachments. The attachments are uploaded to a private temporay directory and then attached to the email. After the email is sent i want to delete the file from the temp directory. If the file is large (several mb) and the list is large the delete function interferes with the cfmail program, by deleting the file before all the email is processed. Is there a way to tell when the email is sent to automatically delete the temporary file and/or is there a way to set up routine that would automatically delete the temp directory every day. Thanks Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353779 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Email attachment problem
Don't use CFsleep to sleep for 15 minutes unless you want to tie up a thread for 15 minutes doing nothing. Depending on the max requests/threads settings, you could stall/crash the server just by reloading that page 10+ times... Brook -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: January-04-13 11:34 AM To: cf-talk Subject: RE: Email attachment problem Use a delay between sending the file and deleting it, like CFSleep. The file is being deleted too quickly. I usually give it about 15 minutes. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Rob Voyle [mailto:robvo...@voyle.com] Sent: Friday, January 04, 2013 1:27 PM To: cf-talk Subject: Email attachment problem Hi folks I have an online classroom that enables participants to email each other including sending attachments. The attachments are uploaded to a private temporay directory and then attached to the email. After the email is sent i want to delete the file from the temp directory. If the file is large (several mb) and the list is large the delete function interferes with the cfmail program, by deleting the file before all the email is processed. Is there a way to tell when the email is sent to automatically delete the temporary file and/or is there a way to set up routine that would automatically delete the temp directory every day. Thanks Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353783 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm