Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
public void send(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();
       System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
       string responseString = respStreamReader.ReadToEnd();
       respStreamReader.Close();
       myResp.Close();
   }




How to solve this?
Posted

1 solution

Either Username and Password are wrong or the service which you are trying to connect is not available anymore.
 
Share this answer
 
Comments
KALYANI BIBIN 30-Jul-14 4:51am    
i have an account on way2sms and credentials are correct itself.
See - Send Text or bulk SMS in ASP.Net using C# and VB.Net. It says...

In previous Example I already Explain that how to send sms to any user from our asp.net Application using way2sms or Fullonsms services. But now this service is not working because ithis service is now not available so behind this result I found the other services to send sms to any user from our Application. so to send the sms first you have to perform the following the steps are follows

Using This service allowed multiple site like Way2sms, FullOnSMS, 160by2, Ultoo.com, SmsSpark.com SMSFI.com Freesms8, Site2SMS, IndyaRocks.com SMSAbc.com , Sms440, BhokaliSMS, etc.
KALYANI BIBIN 30-Jul-14 5:32am    
ok thanx. created an account on site2sms. Can i use the same code to implement the task only by changing the provider name?
Try. But I don't think it will work. Then you can try the other technique written on the link I just shared in my previous comment above.

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