如何将sms c#应用程序发送到移动设备 [英] how to send sms c# application to mobile

查看:88
本文介绍了如何将sms c#应用程序发送到移动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从代码项目和其他人那里尝试了很多代码但是任何一个都无法工作

i tried many code from code project and from others but any one cant work

推荐答案

使用Asp.net发送短信 [ ^ ]



Sending-SMS-through-ASPNET-using-SMS-sending-API -from-providers.aspx [ ^ ]



sending-sms-from-asp-net-application / [ ^ ]



查看链接..希望它能帮到你
Sending Sms Using Asp.net[^]

Sending-SMS-through-ASPNET-using-SMS-sending-API-from-providers.aspx[^]

sending-sms-from-asp-net-application/[^]

Have a look at the links..hope it will help you


我没有提供用户名和发件人ID b'coz你必须从短信卖家购买短信然后你会得到这个东西,授权号码是获得短信发送的号码



拿走所有手机你不想在数据表中发送短信作为dt

I Have not Provided the UserName And sender ID b'coz u have to purchase sms from sms Seller then u will get this thing and authorized number is the number to get report of sms send

take all the mobile no u want to send sms in datatable as dt
for(int i=0;i<dt.rows.count;i++)>
{
string url1 = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=User_Name&senderID=ID SMS&receipientno=" + dt.Rows[i][0].ToString() + "&msgtxt='"+TextBoxName.Text+"' API&state=4";

                //string strUrl = "http://api.mVaayoo.com/mvaayooapi/MessageCompose?user=UserName&senderID=ID SMS&receipientno=AuthorizedNumber&msgtxt=This is a test from mVaayoo API&state=4";
                WebRequest request = HttpWebRequest.Create(url1);
                HttpWebResponse response = (HttpWebResponse)request.GetResponse();
                Stream s = (Stream)response.GetResponseStream();
                StreamReader readStream = new StreamReader(s);
                string dataString = readStream.ReadToEnd();
                response.Close();
                s.Close();
                readStream.Close();
}







这在我的asp.net中使用c#web应用程序希望你的查询解决了




this works in my asp.net with c# web application hope ur query is solve


这篇关于如何将sms c#应用程序发送到移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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