Deleting file after e-mailing it
I'm working on a part of an application where I need to create a temporary Excel file and e-mail it to a specific user. I've got that working, but since these are temporary files, I obviously don't want them cluttering up the server and taking up space.I thought I could just delete the file after the cfmail tag, but it would appear that CF doesn't embed the file in the mail until it's spooled.(I get a mail log error that the attachment file doesn't exist. Commenting out the file deletion allows the mail to be sent.) I'm using cfmailparam to attach the file, rather than the mimeattach attribute. Aside from using a scheduled task to periodically run through and delete all of the temporary files, is there another option I'm overlooking? (I'll do the scheduled task if I have to, but changing any server setting is a bureaucratic nightmare sometimes.) Thanks. Scott --- Scott Brady http://www.scottbrady.net/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Deleting file after e-mailing it
spoolenable = no :) that is if u are using cfmx? ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 -Original Message- From: Scott Brady [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:06 AM To: CF-Talk Subject: Deleting file after e-mailing it I'm working on a part of an application where I need to create a temporary Excel file and e-mail it to a specific user. I've got that working, but since these are temporary files, I obviously don't want them cluttering up the server and taking up space.I thought I could just delete the file after the cfmail tag, but it would appear that CF doesn't embed the file in the mail until it's spooled.(I get a mail log error that the attachment file doesn't exist. Commenting out the file deletion allows the mail to be sent.) I'm using cfmailparam to attach the file, rather than the mimeattach attribute. Aside from using a scheduled task to periodically run through and delete all of the temporary files, is there another option I'm overlooking? (I'll do the scheduled task if I have to, but changing any server setting is a bureaucratic nightmare sometimes.) Thanks. Scott --- Scott Brady http://www.scottbrady.net/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Deleting file after e-mailing it
that is, use it in the cfmail tag as an attribute. ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:09 AM To: CF-Talk Subject: RE: Deleting file after e-mailing it spoolenable = no :) that is if u are using cfmx? ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 -Original Message- From: Scott Brady [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:06 AM To: CF-Talk Subject: Deleting file after e-mailing it I'm working on a part of an application where I need to create a temporary Excel file and e-mail it to a specific user. I've got that working, but since these are temporary files, I obviously don't want them cluttering up the server and taking up space.I thought I could just delete the file after the cfmail tag, but it would appear that CF doesn't embed the file in the mail until it's spooled.(I get a mail log error that the attachment file doesn't exist. Commenting out the file deletion allows the mail to be sent.) I'm using cfmailparam to attach the file, rather than the mimeattach attribute. Aside from using a scheduled task to periodically run through and delete all of the temporary files, is there another option I'm overlooking? (I'll do the scheduled task if I have to, but changing any server setting is a bureaucratic nightmare sometimes.) Thanks. Scott --- Scott Brady http://www.scottbrady.net/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Deleting file after e-mailing it
You could always run a delete script to delete all temp files older than say, 1 hour, every time you create a new email, should do the trick with only a little extra load. -Original Message- From: Scott Brady [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 16:06 To: CF-Talk Subject: Deleting file after e-mailing it I'm working on a part of an application where I need to create a temporary Excel file and e-mail it to a specific user. I've got that working, but since these are temporary files, I obviously don't want them cluttering up the server and taking up space. I thought I could just delete the file after the cfmail tag, but it would appear that CF doesn't embed the file in the mail until it's spooled.(I get a mail log error that the attachment file doesn't exist. Commenting out the file deletion allows the mail to be sent.) I'm using cfmailparam to attach the file, rather than the mimeattach attribute. Aside from using a scheduled task to periodically run through and delete all of the temporary files, is there another option I'm overlooking? (I'll do the scheduled task if I have to, but changing any server setting is a bureaucratic nightmare sometimes.) Thanks. Scott --- Scott Brady http://www.scottbrady.net/ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Deleting file after e-mailing it
no need. spoolenable = no does the trick ...tony tony weeg senior web applications architect navtrak, inc. www.navtrak.net [EMAIL PROTECTED] 410.548.2337 -Original Message- From: Craig Dudley [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 11:06 AM To: CF-Talk Subject: RE: Deleting file after e-mailing it You could always run a delete script to delete all temp files older than say, 1 hour, every time you create a new email, should do the trick with only a little extra load. -Original Message- From: Scott Brady [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 16:06 To: CF-Talk Subject: Deleting file after e-mailing it I'm working on a part of an application where I need to create a temporary Excel file and e-mail it to a specific user. I've got that working, but since these are temporary files, I obviously don't want them cluttering up the server and taking up space. I thought I could just delete the file after the cfmail tag, but it would appear that CF doesn't embed the file in the mail until it's spooled.(I get a mail log error that the attachment file doesn't exist. Commenting out the file deletion allows the mail to be sent.) I'm using cfmailparam to attach the file, rather than the mimeattach attribute. Aside from using a scheduled task to periodically run through and delete all of the temporary files, is there another option I'm overlooking? (I'll do the scheduled task if I have to, but changing any server setting is a bureaucratic nightmare sometimes.) Thanks. Scott --- Scott Brady http://www.scottbrady.net/ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Deleting file after e-mailing it
Original Message: From: Tony Weeg [EMAIL PROTECTED] spoolenable = no Well, that was nice and easy. Thanks! (I just had this computer re-imaged and haven't put the CFMX-specific help/VTML files into CF Studio yet, so I didn't even think to look for new attributes from CFMX.) Scott --- Scott Brady http://www.scottbrady.net/ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Deleting file after e-mailing it
If you turn off the mail spooler in the CF admin it'll work fine...if ur doing very high volume mailings (like 1000's per hour)then you may have to look at deleting them every so often. Stace _ From: Scott Brady [mailto:[EMAIL PROTECTED] Sent: October 24, 2003 11:06 AM To: CF-Talk Subject: Deleting file after e-mailing it I'm working on a part of an application where I need to create a temporary Excel file and e-mail it to a specific user. I've got that working, but since these are temporary files, I obviously don't want them cluttering up the server and taking up space.I thought I could just delete the file after the cfmail tag, but it would appear that CF doesn't embed the file in the mail until it's spooled.(I get a mail log error that the attachment file doesn't exist. Commenting out the file deletion allows the mail to be sent.) I'm using cfmailparam to attach the file, rather than the mimeattach attribute. Aside from using a scheduled task to periodically run through and delete all of the temporary files, is there another option I'm overlooking? (I'll do the scheduled task if I have to, but changing any server setting is a bureaucratic nightmare sometimes.) Thanks. Scott --- Scott Brady http://www.scottbrady.net/ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]