Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to send information from web page to mobile using SMS API . mobile number is entering from textbox. i am trying one code to test as follow but sms is not receving...plz help..


 string msg = "hello";
                 string senderusername = "test";
                 string senderpassword = "test123";
                 string senderid = "abc";        
                 string sURL;
                 StreamReader objReader;
                 sURL = "" + senderusername + "&password=" + senderpassword + "&sender=" + senderid + "&mobile=91" +TxtATSendsms.Text + "&type=1&message=" + msg;
                 WebRequest wrGETURL;
                 wrGETURL = WebRequest.Create(sURL);
                       Stream objStream;
                       objStream = wrGETURL.GetResponse().GetResponseStream();
                       objReader = new StreamReader(objStream);
                   catch (Exception ex)
Updated 4-Jun-13 23:41pm
Prasad Khandekar 5-Jun-13 5:55am    
Don't depend on the free SMS provider's. if you really want to implement this better get in touch with a mobile service provider and purchase the necessary software+support.
Ahmed Bensaid 5-Jun-13 9:30am    
It's like the API you try to use doesn't work.
Member 9579525 6-Jun-13 0:00am    
i want using sms gateway i have it...
Ahmed Bensaid 10-Jun-13 8:45am    
When you reply, reply to the comment directly. Otherwise, we are not aware about your response. What is this sms gateway (name, company, language, ...) ?
Is it a proprietary software or your own sms gateway ?
bluesathish 11-Jun-13 8:12am    
check out the link

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