Hi guys,I'm trying to send sms using asp.net c#.
just a small background - its about sending members a message when they sign up,
but i am stuck with sending message ,
protected void sendmessagetomobile()
{
try
{
string uid = "9999999999";
string password = "****";
string message = "Test";
string no = "9999999999";
//string no = TextBox1.Text;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)req.GetResponse();
StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
Response.Write("sent");
}
catch (WebException ee) { }
}
I'm kinda still new to this programming,so any kind of help will be greatly helpful..