1
Answer

Send Sms Using C# Windows Application vb2008

Nitin Ingle

Nitin Ingle

11y
2.6k
1
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)