Code:
public void SendSms(string FromMobileNo, string password, string Message, string ToMobileNo)
{
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + FromMobileNo + "&pwd=" + password + "&msg=" + Message + "&phone=" + ToMobileNo + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
public void SendSms(string FromMobileNo, string password, string Message, string ToMobileNo)
{
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + FromMobileNo + "&pwd=" + password + "&msg=" + Message + "&phone=" + ToMobileNo + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
This comment has been removed by the author.
ReplyDelete