Код: Выделить всё
HttpWebRequest MyRequest = (HttpWebRequest)WebRequest.Create("http://mobile.isurgut.ru/SendSms.aspx");
MyRequest.Method = "POST";
string postData = "&ph="+tel.Text+"&sm="+sms.Text;
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] byte1 = Encoding.Default.GetBytes(postData);
MyRequest.ContentType = "application/x-www-form-urlencoded";
MyRequest.ContentLength = postData.Length;
Stream newStream = MyRequest.GetRequestStream();
newStream.Write(byte1, 0, byte1.Length);
newStream.Close();
MessageBox.Show("Ваше Сообщение отправлено!");