Thursday, April 18

Send sms to mobile in asp.net using fullonsms free api

Introduction:-
                   How to send free sms to mobile using fullonsms api in asp.net.

Description:-

 
                It is very easy to send a sms by using fullonsms in asp.net.Before that you should have an account their.If you do not have an account then follow the steps to create one.
First create one account in http://fullonsms.com/login.php and in source code update the username and password accordingly.
After you have created an account,you can use that registered number to send sms to other numbers in asp.net.
There is a drawbacks here ,First it is useless for those numbers who has not registered in fullonsms.That means both the sender  and the receiver  should have an account on fullonsms.
If the receiver doesn’t have an account on fullonsms ,then you can’t able to send sms to that number unless and until that user is not going to register their number on fullonsms.
For me you should go for a bulk sms package service rather for fullonsms and way2sms free api.
If still you want to use free fullonsms service then follow the following procedure.


I have taken one asp button control and onclick event i am sending the sms to any mobile number.
Here is my Source code:-
protected void Button2_Click(object sender, EventArgs e)
    {
        send("9338307312""MyPassword""har har bholennath shibashish""9853205712");
    }
    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=fullonsms");
        HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
        System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
        string responseString = respStreamReader.ReadToEnd();
        respStreamReader.Close();
        myResp.Close();
    }
Thanks Shibashish Mohanty
 
 

11 comments:

  1. Any one needs the appliction please send your emailid to my mobile.

    ReplyDelete
    Replies
    1. i urgently need it .my email -abhishek.samantaa@gmail.com

      Delete
    2. Thanks Shibashish, If you have it then please send me. My email address is amin4cs@gmail.com. Thanks again.

      Delete
    3. Thanks Shibashish, If you have it then please send me. My email address is sachinpdeshmukh@gmail.com.

      Delete
  2. sir
    i am civil engineer but interested in programming.. developed myself a vb.net project for my office. now i need to integrate sms sending code with my project... this will be more usefull. i am using ubaid.tk api now.. but most of the times it is giving -1 error. please send me the full code and help me..
    please sir

    ReplyDelete
    Replies
    1. Hi Surya,
      Use that one no issue,but please change the provider way2sms to fullonsms.it will work.Check here my c# code you can online convert it to vb.
      http://shibashishdotnetocean.blogspot.in/2013/04/send-free-sms-using-aspnet-source-code.html?showComment=1367302007849#c8908827941240125594

      Delete
  3. hai sir , this is saikumar.
    I had used ur code but
    HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
    The above line i am getting an error below:

    The remote server returned an error: (407) Proxy Authentication Required.

    plz give the solution
    my mailid:
    saikumarneelams@gmail.com

    ReplyDelete
  4. Hi,
    How many sms can be send in a day by using http://fullonsms.com

    ReplyDelete
  5. The remote server returned an error: (503) Server Unavailable

    ReplyDelete
  6. The remote server returned an error: (503) Server Unavailable

    ReplyDelete
    Replies
    1. Hi
      I'm getting (503) Server Unavailable
      when im trying to open http://ubaid.tk/sms/sms.aspx?
      im getting a message

      We needed a tune-up.

      We're doing a bit of site maintenance that should only last a few hours.

      Go grab a new movie to watch, and we should be back by the time you are!

      please mail me the solution sandeepcs037@gmail.com

      Delete

Please don't spam, spam comments is not allowed here.

.

ShibashishMnty
shibashish mohanty