Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to perform multithreading/background process in classic asp

I need to send emails via a background job on a classic-asp app so the user doesn't have to wait for a slow webserver to complete sending the email.

I know I can use Ajax to generate two separate requests, but I'd rather not require Javascript. Plus, I suspect there's a better way to pull this off. Ideas?

like image 501
Cory House Avatar asked Nov 30 '22 12:11

Cory House


1 Answers

You are thinking too narrowly. You don't have to send the email from ASP. Put it into a database and then have a separate program that runs, say, every minute and send all the emails that are in the database.

like image 114
tomjen Avatar answered Dec 28 '22 08:12

tomjen