View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Deleting file from server after sending email with file attached

Thread began 6/12/2009 6:45 am by YellowCircleWeb | Last modified 6/12/2009 6:59 am by YellowCircleWeb | 1415 views | 1 replies


Deleting file from server after sending email with file attached

I'm trying to build a form that allows a user to upload a file for attaching to the email that is sent from the form and then deletes the file once the email has been sent using ASP and Digital File Pro V1

I'm had a look in the server behaviours for Digital File Pro and chose the following from my file upload server behaviours

WA Upload Files (attachment) <%=WA_DFP_UploadStatus.Item("WA_UploadResult1").serverFileName%> (ignore the space in serverFileName I have no idea why it's there I can't seem to remove it and it's not in my code)

I'm guessing I have to choose the serverFileName as that's the name of the file I've just uploaded to the server and want to delete. I'm also referencing the folder on the server that files are uploaded to.

The email sends and the file is attached properly, however the file isn't being deleted from the server. How can I get it to delete this file once the email has been sent?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...