我希望我的asp.net Web应用程序每天早上8点拍摄邮件。 [英] I want my asp.net web application to shoot mail daily at 8:AM .

查看:97
本文介绍了我希望我的asp.net Web应用程序每天早上8点拍摄邮件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的asp.net网络应用程序每天早上8点拍摄邮件。任何人都可以告诉我可以做些什么。

I want my asp.net web application to shoot mail daily at 8:AM .Can anybody suggest me what can be done.

推荐答案

不确定完整有关您的要求的详细信息,但您可以轻松配置您的后端。



如果后端是SQL,则设置数据库邮件并安排SQL JOB每隔8:00执行一次。



让我知道它是否适合您或提供详细要求。





第二选项:使用C#.net创建exe以发送电子邮件并使用窗口日程安排相同的时间。
Not sure about complete details about your requirement but you can able to do this work simple configure you Back-End.

If Back-end is SQL then setup you Database Mail and schedule the SQL JOB to execute on every 8:00 AM.

Let me know if it's work for you or provide the detail requirement.


2nd Option: Create exe by using C#.net to send email and schedule the same by using window schedule.

通过以下链接: -



样本:

简单的Windows服务,它发送自动电子邮件警报[^] [ ^ ]



MSDN:有关Windows服务的详细信息:

< a href =http://msdn.microsoft.com/en-us/library/d56de412(VS.80).aspx> Windows服务应用程序简介[^] [ ^ ]



有关详细信息,请查看此处:

简单的Windows服务示例[^] [ ^ ]

您的第一个C#Web服务[^] [ ^ ]

Windows服务在行动I [^] [ ^ ]



谢谢,

Mukesh
go through below links:-

Sample:
Simple Windows Service which sends auto Email alerts[^][^]

MSDN: Details about Windows Service:
Introduction to Windows Service Applications[^][^]

For more details, look here:
Simple Windows Service Sample[^][^]
Your first C# Web Service[^][^]
Windows Services in Action I[^][^]

Thanks,
Mukesh


第三种选择是编写脚本或自定义工具以发送电子邮件并使用 Windows调度程序 [ ^ ]。
A third option is to write a script or a custom tool to send the e-mail and run it as a scheduled task using windows scheduler[^].


这篇关于我希望我的asp.net Web应用程序每天早上8点拍摄邮件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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