每天在特定时间发送短信 [英] send sms everyday at a particular time

查看:121
本文介绍了每天在特定时间发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想每天早上7点通过短信向管理人员发送昨天提交的申请总数和待处理的申请详细信息...
这必须从我的asp.net应用程序自动发送...

我怎么能做到这一点...是谁有主意...

Hi,
I want to send the total submitted applications and pending applications details of yesterday, everyday 7am to management through sms...
this must be send automatically from my asp.net application...

how can i achieve this...is anyone has idea...

推荐答案

首先,您需要确定采用哪种方式从应用程序发送短信.因为我知道大多数人使用两种方式发送短信.一个通过GSM调制解调器,另一个通过在线短信服务器.

如果您选择第一种方式,则需要一个与您的PC连接并通过此调制解调器发送短信的GSM调制解调器.有关通过调制解调器发送短信的信息,请参见以下文章.
通过GSM调制解调器发送和读取SMS使用AT命令

如果您选择第二种方式,则需要购买在线短信服务器以发送短信.服务器提供程序为您提供一些API.您用于发送和接收短信的API.
1st of all you need to decide which way you apply to send sms from your application. Because I know two way most of people use to send sms. One via GSM Modem and another one online sms server.

If you choose 1st way then you need a GSM Modem who connected with your pc and send sms via this modem. See below article for Send sms via Modem.
Send and Read SMS through a GSM Modem using AT Commands

If you choose 2nd way then you need to buy a online sms server to send your sms. server provider provide you some API. Those API you use to send and received sms.


注册此Web服务 http://www. webservicex.net/sendsms.asmx [^ ]

然后,在您的代码中添加一个计时器控件
然后在节拍事件中检查时间后发送短信

Register this webservice http://www.webservicex.net/sendsms.asmx[^]

Then, in your code add a timer control
then on the tick event send the sms after checking the time

like
Timer1_Tick(()
{
   if(DateTime.Now == 'time you want the SMS to be sent')
   {
      semdsms obj = new sendsms();
      obj.SendSMSToIndia(params);
   }
}



obj是Web服务对象
而且您必须保持应用程序运行



obj is the webservice object
and you would have to keep the application running


这篇关于每天在特定时间发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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