Send SMS through the your developed project by just adding the following code.
String CompleteUrl =
"http://enterprise.smsgupshup.com/GatewayAPI/rest?msg=" + msg +
"&v=1.1&userid=****&password=****&send_to=" + nu +
"&msg_type=text&method=sendMessage";
WebRequest request = WebRequest.Create(CompleteUrl);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string result = reader.ReadToEnd();
WebRequest request = WebRequest.Create(CompleteUrl);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string result = reader.ReadToEnd();
// This will contain the status of message e.g. failed, ok etc.
lbl_msg.Text = result.ToString();
lbl_msg.Text = result.ToString();
I hope this code will help you........................
Comments
Post a Comment