如何使用网站向移动设备发送消息? [英] how to make send message using website to mobile?

查看:78
本文介绍了如何使用网站向移动设备发送消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建一个在网站上向移动设备发送消息的模块。

给我一个在asp.net中运行的代码。

asp.net网站。

解决方案

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



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.


这篇关于如何使用网站向移动设备发送消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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