Click here to Skip to main content
15,920,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to execute SMS API URL from server end while visiting website, because SMS can only be visited by Server end only ?

Problem occurring while sending sms with System.Net.WebClient.OpenRead(Uri address)
Posted

1 solution

Hi Gaurav,
Try the code below, using this u can also track the sms status.

C#
WebClient client  = new WebClient();
String URL= "http://smsonline.in.....";
String SmsStatusMsg = client.DownloadString(URL);
 if SmsStatusMsg.Contains("<br>")
{
   SmsStatusMsg = SmsStatusMsg.Replace("<br>",",");
  }


Regards
Sameer
 
Share this answer
 
v3

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