Click here to Skip to main content
16,012,028 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to send SMS to multiple users at a single click in c#.net?????
as well as how to use SMS API in our application(Bulk sms/site2sms).......
Posted
Comments
[no name] 17-Feb-15 7:45am    
u can buy a third party sms api to send bulk sms

1 solution

C#
//Use this code..

public void send(string message, string no)
{

HttpWebRequest myReq =
// Eg: (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password +
//"&msg=" + message + "&phone=" + no + "&provider=way2sms");
(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();
}

//Button Click code
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900