在s#中使用sms网关api代码到我的asp.net网站

问题描述:

请有人帮忙使用我的sms网关提供商提供的短信api代码我将无法使用此请一些1建议我的步骤.....

please someone help for using my sms api code that will be provided by my sms gateway provider i will not able to use this please some 1 suggest me the steps.....



请参阅以下链接获取类似主题:

使用asp .net发送短信? [ ^ ]

如何使用c#.net 在asp.net中发送短信[ ^ ]

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

从asp.net发送短信 [ ^ ]





--Amit
Hi,
Refer the links below for similar threads:
Send sms using asp .net?[^]
How to send sms in asp.net by using c#.net[^]
Sending Sms Using Asp.net[^]
sending sms from asp.net[^]


--Amit


尝试以下API

http://ubaid.tk/api-usage/ [ ^ ]
try the following API
http://ubaid.tk/api-usage/[^]


试试这段代码..........



使用MSXML2使用这两个命名空间



;

使用System。 IO;



btn_Click()

{





XMLHTTP http = new XMLHTTP();

string s =" http://www.smssellers.com/sendsms1.asp?username = user& password = rftt546fdt435363gdtefdhgytjyuuk64vf45frtgf& sender = SENDER& ; phonenumber =" + txtMobileNumber.Text +"& text =" + txtMessage.Text +"&quot ;;

http.open(" GET",s,false,null ,null);

http.send(null);

string value = http.responseText;

Response.Write(value.ToString( )+"< BR>" + s);

}
try this code..........

Use these two namespace

using MSXML2;
using System.IO;

btn_Click()
{


XMLHTTP http = new XMLHTTP();
string s = "http://www.smssellers.com/sendsms1.asp?username=user&password=rftt546fdt435363gdtefdhgytjyuuk64vf45frtgf&sender=SENDER&phonenumber="+txtMobileNumber.Text+"&text="+txtMessage.Text+"";
http.open("GET",s , false, null, null);
http.send(null);
string value = http.responseText;
Response.Write(value.ToString()+"<BR>"+s);
}