且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用网站向移动设备发送消息?

更新时间:2022-11-26 14:21:19

如果你想免费发送一个,那么这个就是给你的。



http://www.aspsnippets.com/Articles/如何发送免费SMS-from-ASPNet-application-to-Mobile.aspx [ ^ ]



And如果您想提供付费短信,请先将自己注册到某个短信门户,然后您将获得一个类似这样的网址。



http://000.000.000.000/ API / WebSMS / HTTP / V1.0A / index.php的用户名= arkadeepde&安培;密码= ******&安培;寄件人=阿尔卡&安培;要=

移动&安培;消息=

text& reqid = 1& format = {json | text}& route_id = 7



现在你必须使用像



  string  url =   http://000.000.000.000/API/WebSMS/Http/v1.0a/index.php?username=arkadeepde&password=******&sender = Arka& to = + txtMobile.Text.Trim()+  & message = + message +  & reqid = 1& format = {json | text}& route_id = 7 跨度>; 
WebClient client = new WebClient();
string rtn = client.DownloadString(url);




$ b $ rtn 中的b获取json值。从那里你可以显示你的msg是否已经发送。


Create a module that was send message to mobile in the website.
give me a code which was run in asp.net.
asp.net web site.

If you want to send a free one then this one is for you.

http://www.aspsnippets.com/Articles/How-to-send-free-SMS-from-ASPNet-application-to-Mobile.aspx[^]

And if you want to deliver paid sms then register yourself first to some sms portal and then you will get an url like this one.

http://000.000.000.000/API/WebSMS/Http/v1.0a/index.php?username=arkadeepde&password=******&sender=Arka&to=


mobile&message=


text&reqid=1&format={json|text}&route_id=7

Now you have to run the code with your values like

string url = "http://000.000.000.000/API/WebSMS/Http/v1.0a/index.php?username=arkadeepde&password=******&sender=Arka&to=" + txtMobile.Text.Trim() + "&message=" + message + "&reqid=1&format={json|text}&route_id=7";
WebClient client = new WebClient();
string rtn = client.DownloadString(url);



in rtn get the json valu. from there you can show whether your msg has delivered or not.