如何在特定时间从asp.net Web应用程序发送邮件 [英] How to send mail at a certain time from asp.net web application
问题描述
我是asp.net的新手。我有一个项目正在工作。我需要每天凌晨12点向不同的用户发送不同的邮件。
我需要知道如何实现每天在特定时间段唤醒的方法。
请作为我的完整初学者使用
I am new to asp.net. I have a project working. I need to send different mails every day at 12 am to different users.
I need to know how to implement the method that will wake up every day at a certain period.
Please help me with as much details possible as I am a complete beginner
推荐答案
使用 Quartz.NET 。
Quartz.NET是用.NET平台编写的功能齐全的开源企业作业调度系统,可以用于最小的应用程序到大型企业系统。
Quartz.NET is a full-featured, open source enterprise job scheduling system written in .NET platform that can be used from smallest apps to large scale enterprise systems.
您也可以使用Windows Task Scheduler,但是您需要一些特定的Windows权限才能在生产服务器上执行此操作。
You can use Windows Task Scheduler as well, but you need some specific windows permissions to do that on production server.
这篇关于如何在特定时间从asp.net Web应用程序发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!