Wednesday, 4 January 2012

Send Free Sms In Dot net Through Way2Sms

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();
        }

1 comment: