public void send(string message, string no)
{
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("puturlink = "+"UrUsername"+ "&password=" + "UrPassword" + "&sender=" +"UrSenderID"+ "&to=" +no+ "&message=" + message+ "&reqid=1&format={json|text}&route_id=route+id&callback=Any+Callback+URL&unique=1&sendondate=" +"10-10-2014T05:17:52"+"");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
protected void btn_send_Click(object sender, EventArgs e)
{
send(txt_message.Text, txt_mobile.Text);
ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('sms sent successfully...');", true);
}
Ref :
1)
Send free and bulk SMS to mobile numbers using Way2SMS and FullOnSMS accounts using ASP.Net
2)
How to send free SMS from ASP.Net application to Mobile