473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1629
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 the parent table is deleted, then InnoDB...
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 ("qryDonations"). But the SQL syntax I came up with is...
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. First of all, I am writing a literature and...
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 all records from the table; however, I cannot get...
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 these tools using Classic ASP. Some classes...
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 = CPRMemory::GetMemoryHead(head_type);...
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"; System.Net.Mail.SmtpClient smtp = new...
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 recepient...instead it is showing the following strange...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.