first of all i will let you know one thing
you need to buy an api for that or you can take a demo
this code is working fine in my project
you need to buy an api for that or you can take a demo
this code is working fine in my project
2:
3: protected void btnSendMessage_Click(object sender, EventArgs e)
4: {
5: string senderusername = "xxxxx";
6: string senderpassword = "xxxx";
7: string senderid = "xxx";
8: string sURL;
9: StreamReader objReader;
10: sURL = "http://thundersms.com/smsapps/pushsms.php?username=" + senderusername + "&password=" + senderpassword + "&sender=" + senderid + "&mobile=91" + txtMobileNumber.Text + "&type=1&message=" + txtMessage.Text;
11: WebRequest wrGETURL;
12: wrGETURL = WebRequest.Create(sURL);
13: try
14: {
15: Stream objStream;
16: objStream = wrGETURL.GetResponse().GetResponseStream();
17: objReader = new StreamReader(objStream);
18: objReader.Close();
19: }
20: catch (Exception ex)
21: {
22: ex.ToString();
23: }
24: }
25:
0 comments:
Post a Comment