Harish Batchu

Harish Batchu

  • NA
  • 255
  • 70.3k

When Sending sms to mobile?

Oct 23 2018 12:18 AM
When i am sending message to mobile i got an error like below
 
Sender ID Does not Exist or Pending or Route Invalid!
 
i will give the code
 
string strurl = "http://trans.digitelex.in/api/sendmsg.php?user=xxxxxxxx&pass=xxxxx&sender=xxxx&phone=xxxxx&text=TestSMS&priority=ndn&stype=normal";
// Create a request object
WebRequest request = HttpWebRequest.Create(strurl);
// Get the response back
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream s = (Stream)response.GetResponseStream();
StreamReader readStream = new StreamReader(s);
string dataString = readStream.ReadToEnd();
response.Close();
s.Close();
readStream.Close();
 
I got error like :-
 
Sender ID Does not Exist or Pending or Route Invalid!
 
thanks in advance

Answers (4)