472,342 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 software developers and data experts.

How to delete a mail in classic asp ?

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
5 1597
jhardman
3,406 Expert 2GB
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
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
3,406 Expert 2GB
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
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
3,406 Expert 2GB
............
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

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

Similar topics

5
by: Andrew DeFaria | last post by:
I created the following .sql file to demonstrate a problem I'm having. According to the manual: If |ON DELETE CASCADE| is specified, and a row in...
13
by: Franklin Li | last post by:
Hi All, I find one example codes as below: int send() { char msg; ... delete msg; ..
8
by: paulwilliamsonremove | last post by:
Hi, Using Access 2003. I am trying to delete records from one table/query ("qryHistoryPersonIDs") if they don't exist in another table...
2
by: R.Welz | last post by:
Hello. I want to discuss a problem I have with my database design becourse I feel I cannot decide wheather I am on the right way of doing things. ...
3
by: Kevin M | last post by:
I have one table and have created a form from that table. Also, I have created a delete query. I want to but a button on the form which will delete...
2
by: | last post by:
I implement a lot of "send to friend" functionalities as well as utilizing a lot of content that's been scraped from other places on the web.I built...
9
by: rohits123 | last post by:
I have an overload delete operator as below ////////////////////////////////// void operator delete(void* mem,int head_type) { mmHead local_Head...
4
by: Seguros Catatumbo | last post by:
Hi guys, i am having trouble deleting a file after sending an email. The file is in use. Here's the code: String texto = "Test";...
3
nitindel
by: nitindel | last post by:
Hi All, Greetings..!! I am using Persits Software to send mail in my Project through ASP,VBSCRIPT... But Mail is not going to the...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.