问题描述
我要开发ASP.NET 2.0(C#)和SQL2005联机提醒服务。但我没有得到提醒服务理念。我所知道的是使用在线提醒服务,我可以安排提醒未来日期,这是送给我的(谁安排的提醒),通过在该日期电子邮件或短信。但在asp.net中如何做到这一点,CAZ任何人都可以安排一个提醒任何日期,我们怎么知道什么时候发送邮件的人。我们必须把一些循环或者是什么。
I want to develop an Online Reminder service in ASP.NET 2.0 (C#) and SQL2005. But I am not getting the concept of reminder service. What I know is using an online reminder service I can schedule a reminder for future dates, which is sent to me (who schedule reminder) via email or SMS on that date. But in asp.net how to do this, caz anyone can schedule a reminder for any date, how we'll know that when to send that mail to the person. We have to put some loop or what.
所以,请指引我,什么是一个在线提醒服务的概念,以及如何使用,我可以很容易地开发这个应用程序ASP.NET和SQL
So please guide me, what is the concept of an online reminder service and how I can easily develop this application using ASP.NET and SQL
编辑
我的共享托管服务器,这样的解决方案必须能够工作在共同主办。
I am on Shared hosting server, so that solution must be able to work on shared hosting.
或
请告诉我,如果任何人知道任何自由和开放源码的提醒服务,CMS,我可以下载并研究它。
Please tell me if anyone knows about any FREE and open-source reminder service CMS which I can download and study it.
推荐答案
在理想情况下,你将有一个窗口服务,将定期(每隔几分钟)检查是否有新的提示需要发送出去。既然你是在共享主机,你可能无法安装一个服务,但。
Ideally, you would have a windows service that would periodically (every few minutes) check if any new reminders need to be sent out. Since you are on shared hosting, you probably can't install a service though.
我不是很熟悉,共同主办的窗户,但如果你有创建预定/ cron作业类型任务的选项,您也许可以这样做的。
I'm not very familiar with windows shared hosting, but if you have the option of creating scheduled/cron job type tasks you could probably do it that way.
如果您无法在服务器上创建计划任务,另一种选择是将您的家用电脑与程序/脚本运行每隔几分钟,只需点击网站上的一个专题网页上创建计划任务。然后,该页面可以有code来检查提醒,发送出去。这是一个黑客位,但它应该工作。
If you can't create a scheduled task on your server, another option would be to create a scheduled task on your home PC with a program/script that runs every few minutes and simply hits a special web page on your site. That page could then have the code that checks for reminders and sends them out. It's a bit of a hack, but it should work.
这篇关于在asp.net 3.5发送电子邮件通知的未来日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!