ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old May 7th, 2003, 11:04 AM
mattboy_slim mattboy_slim is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 mattboy_slim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Finding a file within a folder hierarchy and emailing it?

Right now we have an Access database that contains data
pertaining to spam that has been caught by our spam
software. The spam software places data into this
database automatically.

What I'm setting up is a web page that has all these
records created by the spam software, and I would like to
be able to have users log onto a web page, and search
through their caught messages, and if they see one that
is not spam, and I want them to be able to "release"
these messages from the server.

The database has a field that gives the .msg filename
(EXAMPLE: B0000000273.MSG). These files are not contained
within one folder, but rather a series of folders. The
10,000 digit, or the 5th from the right, seems to specify
what folder the message is placed into. See examples
below.

Example of folder hierarchy:

----------------------------------------------------------
----------------------

-->QUARANTINE
|------>0000
--|------>B0000000273.MSG
--|------>B0000000274.MSG
|------>0001
--|------>B0000015118.MSG
--|------>B0000019243.MSG
|------>0002
--|------>B0000026784.MSG
--|------>B0000028421.MSG

----------------------------------------------------------
----------------------



So what I need is a link on my page that will somehow
pass the "B0000000273.MSG" to an email component, which
will search the folder "QUARANTINE" for "B0000000273.MSG"
and if it finds it, then attach it to an email, and send
it the recipient specified in the same record in the
Access database.

I have to imagine that something like this has been done
before, since I do not consider myself a visionary, as a
matter of fact, I think of myself as quite the opposite.

My current page: (CAUTION: Profane language ahead)
URL

Somebody please point me in the right direction, and
remember, I'm completely new to ASP and VBscript web
programming. I've got a bit of experience with CDONTS,
but none with FSO, but I'll go along with whatever you
tell me to do.


Thanks,
Matt

Reply With Quote
  #2  
Old May 12th, 2003, 09:39 AM
mrTed's Avatar
mrTed mrTed is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: a northern town
Posts: 74 mrTed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 49 sec
Reputation Power: 7
You can check recursively through the directory tree using the FSO but it looks like you can easily predict the folder which will contain the required e-mail by checking the *nth character of the msg name. Once you have defined the folder name it shouldn't be too difficult to either attach the file to an e-mail or extract the content and send to the user using cdonts.

This may help with the e-mail?

HTH.
__________________
/* measure twice, cut once */

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Finding a file within a folder hierarchy and emailing it?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway