Nitin Ingle

Nitin Ingle

  • NA
  • 5
  • 10.9k

Send Sms Using C# Windows Application vb2008

Jul 6 2013 8:12 AM
Hello,
plz help me i want to send sms to the mobile using c# windows application i am using vb2008 how can do this?
i am using following way2sms gateway but message is not sent.....


HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid./sms/sms.aspx?uid=" + txtMobile.Text + "&pwd=" + txtPassword.Text + "&msg=" + txtMessage.Text + "&phone=" + txtPhoneNo.Text + "&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();
            MessageBox.Show("Message has been sent Successfully...", "Successfully", MessageBoxButtons.OK, MessageBoxIcon.Information);


Answers (1)