在asp.net中自动发送短信 [英] Automatic SMS Sending in asp.net

查看:177
本文介绍了在asp.net中自动发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了aspn.net web应用程序,用户在我的应用程序上设置提醒。现在我想在移动设备上向特定用户发送消息以自动提醒提醒。

I created aspn.net web application where set reminder by user on my application.Now i want to send message on mobile to particular user to remind the reminder automatically.

推荐答案

由于ASP.NET代码仅在从浏览器发出请求时运行,因此根据特定时间发送提醒是非常差的候选者。



解决方案是创建一个Windows服务,可以访问您的应用程序提醒数据保存在文件或数据库中的数据(您将这些数据保存在某处,对吗?)。每分钟一次,此服务可以搜索数据并查找当时安排的所有提醒,将其发送出去并重新进入休眠状态。您可以在服务中使用计时器。
Since ASP.NET code only runs when an incomming request is made from a browser, its a very poor candidate to send reminders based on a certain time.

The solution is to create a Windows Service that has access to the data your apps reminder data saved in a file or database (you ARE saving this data somewhere, correct?). Once every minute, this service can search the data and find all the reminders that are scheduled for that time, send them out and go back to sleep. You can use a Timer for this in a service.


这篇关于在asp.net中自动发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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