如何每天在特定时间自动向管理员发送电子邮件 [英] How to send email to admin automatically at a particular time daily

查看:130
本文介绍了如何每天在特定时间自动向管理员发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何每天在特定时间自动从Web应用程序向管理员发送电子邮件.

How to send email to admin automatically at a particular time daily from web application.

推荐答案

您需要发送自动电子邮件警报的简单Windows服务 [ MSDN:Windows服务应用程序简介 [ ^ ]

使用C#Windows服务结合数据库电子邮件记录PART – II异步发送自动电子邮件 [任务计划程序(Windows) [ ^ ]
关于任务计划程序与Windows服务的比较 [ SQL Server作业 [ SQL数据库邮件-从SQL Server发送电子邮件 [ SQL数据库邮件-通过电子邮件发送T-SQL结果 [使用ASP.NET模拟Windows服务以运行计划的作业 [ CodeProject答案 [ ^ ]之前问过类似的问题.
You need Windows Service[^] for this.

Sample: Simple Windows Service which sends auto Email alerts[^]
Details about Windows Service: MSDN: Introduction to Windows Service Applications[^]

Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records – Part I[^]
Sending Automated Emails asynchronously using a C# Windows Service in conjunction with Database Email records PART – II[^]

Alternatively, you may use Task Scheduler (Windows)[^]
A comparison about Task Scheduler vs Windows Service[^]

Or use SQL Server jobs[^]
SQL Database Mail - Send Emails from SQL Server[^]
SQL Database Mail - Send T-SQL Results by Email[^]

BTW found a nice article in CP(Nice article)
Simulate a Windows Service using ASP.NET to run scheduled jobs[^]

Check out CodeProject Answers[^] for similar question asked before.


这篇关于如何每天在特定时间自动向管理员发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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