Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Starting process from asp


Message #1 by "daniele" <demichelis@s...> on Wed, 30 Oct 2002 09:05:35
Here's my problem:
I'm developing a mailing list tool. This tool has a web interface built 
with asp. The user can build dinamic mailing lists, compose a mail and 
send it to the lists.
The number of mail to be send can surely reach 50,000 / 100,000 mails.
The first solution was to send mails using CDONTS directly from asp page 
but this leaded to troubles like asp pages going timeout.
I decided to make an .exe in VB that sends all mail. The problem now is 
that I'm not able to start the exe program from an asp page...
I tried WSH.Shell and AspExec from ServerObjects. They are able to 
run "basic" commands like "dir" and "copy" but not my vb program.
Do you know how it's possible to start a server process from an ASP page ?
(or if you have a different idea to solve the problem...)

The main issue is that the outer process must not hang the asp page that 
has to start the sender process and terminate immediately.
Message #2 by "Ken Schaefer" <ken@a...> on Wed, 30 Oct 2002 20:49:38 +1100
I would:
a) store the dates that the email messages are to go out in a database

b) If the database is Access, then write a .vbs file, (or put a vb.exe on
the server), and use the Windows Task Scheduler to run the file. It will
look in the database to see if there are any pending messages. It could do
this every 30 minutes or something

c) If the database is SQL Server, you could store a job in the database to
do the same thing.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "daniele" <demichelis@s...>
Subject: [asp_web_howto] Starting process from asp


: Here's my problem:
: I'm developing a mailing list tool. This tool has a web interface built
: with asp. The user can build dinamic mailing lists, compose a mail and
: send it to the lists.
: The number of mail to be send can surely reach 50,000 / 100,000 mails.
: The first solution was to send mails using CDONTS directly from asp page
: but this leaded to troubles like asp pages going timeout.
: I decided to make an .exe in VB that sends all mail. The problem now is
: that I'm not able to start the exe program from an asp page...
: I tried WSH.Shell and AspExec from ServerObjects. They are able to
: run "basic" commands like "dir" and "copy" but not my vb program.
: Do you know how it's possible to start a server process from an ASP page ?
: (or if you have a different idea to solve the problem...)
:
: The main issue is that the outer process must not hang the asp page that
: has to start the sender process and terminate immediately.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index