By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,532 Members | 1,514 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,532 IT Pros & Developers. It's quick & easy.

How to delete a mail in classic asp ?

P: 4
Dear...
I have developed a website. which provides the facility to send and retrieve emails to users.
Now when a user is visiting his/her inbox ,if he/she wants to remove or delete emails...at this point I am not being able to make my program to allow the same,i.e. I want to ask you...what lines of code I should add to delete mail..from drop directory.

-Pawan
May 10 '07 #1
Share this Question
Share on Google+
5 Replies


jhardman
Expert 2.5K+
P: 3,405
Pawan,

Welcome to the scripts DN. I hope someone here will be able to help you. First let me ask, how are the emails stored electronically? do you have them in a database? Are they saved as individual text files? Please show a code example that shows how an email message is retreived.

Jared
May 11 '07 #2

P: 4
Pawan,

Welcome to the scripts DN. I hope someone here will be able to help you. First let me ask, how are the emails stored electronically? do you have them in a database? Are they saved as individual text files? Please show a code example that shows how an email message is retreived.

Jared
Dear sir,
Thanks for taking my problem into consideration...
I am stroring emails in DROP Direrctory in mailroot folder as normal default txt file.

thanks in advance..
Jun 1 '07 #3

jhardman
Expert 2.5K+
P: 3,405
Dear sir,
Thanks for taking my problem into consideration...
I am stroring emails in DROP Direrctory in mailroot folder as normal default txt file.

thanks in advance..
I've never tried this with a DROP directory specifically, but it should work to say
Expand|Select|Wrap|Line Numbers
  1. set fs = server.createobject("scripting.fileSystemObject")
  2. fs.deleteFile(fileName)
Jared
Jun 1 '07 #4

P: 4
I've never tried this with a DROP directory specifically, but it should work to say
Expand|Select|Wrap|Line Numbers
  1. set fs = server.createobject("scripting.fileSystemObject")
  2. fs.deleteFile(fileName)
Jared
............
dear sir...
At the time of retrieving mails...via. CDO.DropDirectory ,how i would know the name of file.
and without getting name i can't delete by fs.deletefile(..).
--Pawan
Jul 30 '07 #5

jhardman
Expert 2.5K+
P: 3,405
............
dear sir...
At the time of retrieving mails...via. CDO.DropDirectory ,how i would know the name of file.
and without getting name i can't delete by fs.deletefile(..).
--Pawan
Please show a code example that shows how an email message is retreived.

Jared
Jul 30 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.