Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
public void sendSMS(string uid, string password, string message, string no)
   {
       HttpWebRequest myReq =
       (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms");

       HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
      // request.Proxy = GlobalProxySelection.GetEmptyWebProxy();
       System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
       string responseString = respStreamReader.ReadToEnd();
       respStreamReader.Close();
       myResp.Close();
   }



   protected void Button1_Click(object sender, EventArgs e)
   {
       sendSMS("9966557790", "******", txtmsg.Text, txtno.Text);
       ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('sms sent successfully...');", true);
   }


we will write asp.net through C# code send message to mobile through way2sms.com . we will get This error (The remote server returned an error: (503) Server Unavailable.). Please Replay me
Posted

Check what this error means - HTTP Error 503 - Service unavailable[^].
Also check if the URL you are sending the request to is correct. If the problem persists contact the service provider.
 
Share this answer
 
http://ubaid.tk/sms/sms.aspx, that web site actually currently not available..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900