protected void Button1_Click(object sender, EventArgs e) { UriBuilder urlBuilder = new UriBuilder(); urlBuilder.Host = "127.0.0.1"; urlBuilder.Port = 8800; string PhoneNumber = "09638136263"; string message = "Just a simple text"; urlBuilder.Query = string.Format("PhoneNumber=%2B" + PhoneNumber + "&Text=" + message); HttpWebRequest httpReq = (HttpWebRequest)WebRequest.Create(new Uri(urlBuilder.ToString(), true)); HttpWebResponse httpResponse = (HttpWebResponse)(httpReq.GetResponse()); Response.Write(httpResponse.StatusCode.ToString()); Response.Write("sms send successfully"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)