Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
can i get an api by which i can send free sms on mobile by the website which is i am creating
Posted 7-Feb-13 2:04am
Comments
Ankur\m/ at 7-Feb-13 8:19am
   
FREE? I don't think so. BTW you haven't mentioned what were the issues that you faced while sending the sms?
Vijay Pawar at 7-Feb-13 8:28am
   
i uses a lot of apis but i cant send sms:::::: protected void btn_SEndMsg_Click(object sender, EventArgs e) //{ // string url = "http://thundersms.com/smsapps/pushsms.php?user=ckuser&password=ckpass&mobiles=" + lbl_MobileNo.Text + "&message=" + txt_SendMsg.Text + "&sender=senderid"; // WebRequest w = WebRequest.Create(url); // WebResponse r = w.GetResponse(); // lbl_SendMSg.Visible = true; // lbl_SendMSg.Text = "Message Successfully Sent On Your Mobile...................!"; //} { // string url = "https://www.textmagic.com/app/api?user=myusername&password=mypassword&cmd=receive&last_retrieved_id=0 &mobiles=" + lbl_MobileNo.Text + "&message=" + txt_SendMsg.Text + "&sender=senderid"; // string url = "http://sms.sms2india.info/sendsms.asp??user=username&password=password &mobiles=" + lbl_MobileNo.Text + "&message=" + txt_SendMsg.Text + "&sender=senderid"; // string url = "http://www.yourdomain.com/sendsms.php?user=LOGIN_ID&password=PASSWORD&mobiles=" + lbl_MobileNo.Text + "&message=" + txt_SendMsg.Text + "&sender=senderid"; // string url = "http://cp.sendbulksms.com/sendsms?username=myuser&password=mypassword&mobiles=" + lbl_MobileNo.Text + "&message=" + txt_SendMsg.Text + "&sender=senderid"; // string url = "http://cp.sendbulksms.com:13013/cgi-bin/sendsms?username=myuser&password=mypassword&mobiles=" + lbl_MobileNo.Text + "&message=" + txt_SendMsg.Text + "&sender=senderid"; string url = " http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=username&password=password&sendername=senderid&mobiles=" + lbl_MobileNo.Text + "&message=" + txt_SendMsg.Text + "&sender=senderid"; WebRequest w = WebRequest.Create(url); WebResponse r = w.GetResponse(); // lbl_SendMSg.Visible = true; // string senderusername = "xxxxx"; // string senderpassword = "xxxx"; // string senderid = "xxx"; // string sURL; // StreamReader objReader; //sURL = "http://thundersms.com/smsapps/pushsms.php?username=" + senderusername + "&password=" + senderpassword + "&sender=" + senderid + "&mobile=91" + lbl_MobileNo.Text + "&type=1&message=" + txt_SendMsg.Text; //WebRequest wrGETURL; //wrGETURL = WebRequest.Create(sURL); //try //{ // Stream objStream; // objStream = wrGETURL.GetResponse().GetResponseStream(); // objReader = new StreamReader(objStream); // objReader.Close(); //} //catch (Exception ex) //{ // ex.ToString(); //} lbl_SendMSg.Text = "Message Successfully Sent On Your Mobile...................!"; }
Ankur\m/ at 7-Feb-13 9:03am
   
What was the error? Did you even connect your modem properly and tested if it was working okay?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Well, I did this[^], and got links like these and many more:
Articles:
Sending SMS using .NET through Web service[^]
Sending SMS text messages using ASP.NET scripts[^]
 
Discussion links:
sending sms using vb.net[^]
how to send sms through asp.net with c#? [^]
 
See these also:
Sending SMS using .NET[^]
How to Send and Receive SMS with the Orange SMS API[^]
 
Nutshell: ASP.NET does NOT have any inbuilt API support to send out an SMS. You need to go for a third party solution or use something that is found on the Internet. Articles and discussions above should help you out.
  Permalink  
Comments
Marcus Kramer at 7-Feb-13 13:50pm
   
My 5
Sandeep Mewara at 8-Feb-13 0:21am
   
Thanks.

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

  Print Answers RSS
0 Dnyaneshwar@Pune 1,310
1 Sergey Alexandrovich Kryukov 1,001
2 OriginalGriff 303
3 Tadit Dash 290
4 Manas Bhardwaj 215
0 Sergey Alexandrovich Kryukov 11,441
1 OriginalGriff 6,930
2 Peter Leow 4,850
3 Abhinav S 3,838
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web04 | 2.8.140421.2 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid