如何在经典asp中执行多线程/后台进程 [英] How to perform multithreading/background process in classic asp

查看:196
本文介绍了如何在经典asp中执行多线程/后台进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过一个经典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.

我知道我可以使用Ajax生成两个单独的请求,但是我宁愿不需要Javascript。此外,我怀疑有更好的方法来拉开这个。想法?

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?

推荐答案

你太狭隘了。您不必从ASP发送电子邮件。将其放入数据库,然后单独运行一个程序,每分钟运行一次,然后发送数据库中的所有电子邮件。

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.

这篇关于如何在经典asp中执行多线程/后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆