如何每周发送通知? [英] How to send notification weekly?

查看:86
本文介绍了如何每周发送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#中如何每周向用户发送通知作为他的电子邮件的提醒?

解决方案

谷歌asp.net调度任务,你会得到很多可能的解决方案,哪一个适合您,取决于您有什么。您可以编写Windows服务来处理通知,您可以使用SQL Server作业来处理它,您可以通过发送通知的Windows计划任务调用您网站上的网址,您可以使用Quartz.net之类的东西来处理网站本身的任务。其中一些可能不适合您,有些可能比其他选项更可靠。



一旦您有能力安排任务,您的任务需要识别每个没有收到该周电子邮件的人,向他们发送电子邮件,然后标记他们已将电子邮件发送给他们。你如何做到这一点取决于你的解决方案是如何实现的,你没有说过,所以没有人可以给你任何具体的建议。


在这个要求中你已经编写了SQL调度程序Job for邮件,它每天,每周,每月自动发送邮件。




this case 你必须在 c# =code-keyword>使用 System.Net.Mail 命名空间并在任务中安排调度员每周。


In C# how to send notification weekly to user as a reminder on his email?

解决方案

Google "asp.net scheduling task" and you'll get lots of possible solutions, which one is right for you depends on what you have available. You can write a Windows Service to handle the notifications, you can use a SQL Server Job to handle it, you can call a url on your site via a Windows schedule task that sends the notifications, you can use something like Quartz.net to handle the tasks in the site itself. Some of those might not be valid options for you, and some are more reliable than others.

Once you have the ability to schedule a task, your task needs to identify everyone who has not had an email that week, send them the email then flag that they have had the email sent to them. How you do that depends on how your solution is implemented which you haven't said, so no-one can give you any specific advice.


In this requirement you have write SQL scheduler Job for mail, It send mail automatically as you want daily, weekly, monthly.


Hi,

In this case u have to create one utility in c# using System.Net.Mail namespace and schedule in task scheduler weekly. 


这篇关于如何每周发送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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