发送电子邮件在后台工作/计划任务在asp.net mvc 3 [英] Send emails in background job/scheduled task in asp.net mvc 3

查看:350
本文介绍了发送电子邮件在后台工作/计划任务在asp.net mvc 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在正常托管 (即没有拥有或虚拟服务器)上托管了一个ASP.NET MVC 3网络应用程序 ,我希望能够存储电子邮件在数据库中说,让他们拿起并发送在后台工作。

I have an ASP.NET MVC 3 web app hosted on normal hosting, (i.e., no owned or virtual server), and I would like to be able to store e-mails say in a database and have them picked up and sent in a background job of sorts.

如果这是我自己的服务器,我会写一个Windows服务要处理这个问题,但是有没有办法在Web应用程序进程中实现/模拟计划的任务/后台工作?

If this was my own server I'd write a Windows Service to handle this, but is there any way I could implement/simulate a scheduled task/background job in a web application process?

推荐答案

您可以查看 Quartz.NET 。有一个博客文章关于您如何使其在中等信任度下运行。

You may take a look at Quartz.NET. There is a blog post about how you could make it running in medium trust.

这篇关于发送电子邮件在后台工作/计划任务在asp.net mvc 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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