Search This Blog

Friday, July 8, 2011

Unofficial Way2Sms API Using JAVA To Send Free SMS

This is a way to send free sms from our computer through Way2sms, which allows to send free sms.
Using this code one can send sms to multiple phone numbers like shown in the screen shot

For that you need to have the following


1) You have to register at Way2SMS and Obtain a User Name and Password.

2)You have to find the ACTION value.

*In-order to  find the action value first install 'fire bug' to your Firefox.
*Then login to your way2sms account.
*Open Firebug from tools->Firebug->open firebug.
*In the search field of firebug type 'action' and click next until you find something like
<input id="Action" type="hidden" value="sa65sdf656fdfd" name="Action">

*Now the value 'sa65sdf656fdfd' is your ACTION value.


Now everything set up. Download the source


JAVA PROGRAM FOR SENDING SMS THROUGH WAY2SMS

Now open the source and edit the following fields in main()
* USERNAME : Your way2sms username
*PASSWORD : Your way2sms password
*ACTION : The ACTION value we found out
*Also uncomment the proxy support if needed.

Now compile the code

          javac Way2SMS.java

Run the code

java Way2SMS phone no1 no2 ....  message your message here!



Example :
java Way2SMS phone 1234567890 0987654321 message Where where you yesterady?





Note: Few weeks ago one of my friend Srijidh asked about sending sms from our desktop. But at that time we were having university exams. Today I remembered his query and decided to code. I wrote this code after referring several python codes from github and that found on google search.

Note2: The ACTION value is so important that if you have omitted the program will not  give the desired result. In future I will add feature to automatically fetch that ACTION field for you.












35 comments:

  1. Nice code! But it was working till 29-7-2011, since then it gives me url error. what could be the problem?

    ReplyDelete
  2. So..nice

    it's so nice but it's not working since last night...
    same..url connection error occured....

    i wanted to implement this in ma.. school project so plzz tell me what to do....

    ma..mail-id abhinavsengar.cs@gmail.com

    8120297777 it's ma.. mobile no.....

    plzz..help me sir i have only three days to submit this project...

    Thanx in advance

    ReplyDelete
  3. how do u found these web site like-"http://site5.way2sms.com/auth.cl"
    "http://site5.way2sms.com//entry.jsp"
    how can i find the links for 160by2 or any other sites plz reply

    ReplyDelete
  4. could i use this api in my private blogger blog ?

    how

    mke a simple htnl code

    ReplyDelete
  5. thanks darling

    I ll build a GUI now

    ReplyDelete
  6. Sorry guys...I couldnot accesss my blog for some reasons till now..I bought a domain http://enath.in and will be posting there only now onwards..Again sorry for belated reply..will catch you guys there...
    @Anilkumar sure you can use the code.
    @maya the problem will be the url used in this code 'site5.way2sms.com' they usually change this url for load balancing. I got this url from their web page source.Thanks

    ReplyDelete
  7. It does'nt work gave me same URL connection error!!!!!!!!!

    doest'nt work even if i change the code wriiten as "site5.way2sms.com"

    ReplyDelete
  8. we got the error of url connection error any guidance what can be done in that regards.. waiting

    ReplyDelete
  9. Hey but i am not able to get the value for Action from that firebug. can you please guide me.

    ReplyDelete
  10. hey this code is not working for me.

    ReplyDelete
  11. Hey but i am not able to get the value for Action from that firebug. can you please guide me............
    plz help me.....
    my id is sizzling.rishu@gmail.com...

    ReplyDelete
    Replies
    1. Find < input type="text" value="01029928">
      copy these value for ex ... 01029928
      Thats fine it working proerly

      Delete
  12. not working for me...............But i am not able to get the value for Action from that firebug.

    ReplyDelete
  13. how to find Action value from fire bug ? ? ? ? i have installed that firebug for google crome... please help me...

    ReplyDelete
  14. hi,
    where i put the action value.
    plz tell me the code.

    ReplyDelete
    Replies
    1. plz see this link it's work fine
      http://ibm-tgmc.blogspot.in/2011/12/sending-sms-via-way2sms-using-java.html

      Delete
  15. hello,
    i found in this code cookies are null so my code not proper working what's the problem plz tell me
    if u found resion than send me mail at my id
    mpatidar01@gmail.com

    ReplyDelete
  16. action value:-sa65sdf656fdfd use this i hope it's work

    ReplyDelete
  17. Way2sms app available on google play store

    https://play.google.com/store/apps/details?id=com.kgs.smscollection

    ReplyDelete
  18. This is not working but i found an other script which is working great

    http://www.goforexpert.com/way2sms-rest-api-send-free-sms-to-india/

    Just use an Http Client call using get method for the above api it works great

    ReplyDelete
  19. Is there is any way to send more than 140 characters.
    Some time its more than 140 character then it give error.

    ReplyDelete
  20. this code not working pls give some other code..........

    ReplyDelete
  21. Hi,
    i found in this code cookies are null so my code not proper working what's the problem plz tell me
    if u found reason than send me mail at my id
    suman.logon@gmail.com

    ReplyDelete
  22. I am not getting my Action value... What should i do?

    ReplyDelete
  23. Way2sms Site : Already Changed
    Plz Registration Loge-in
    Free ... Free ... Free ... Free ... Free
    1. http://site5.way2sms.com/jsp/UserRegistration.jsp?id=EA3bQD9ScUdnFYOga0EcnAi6jzVwQsMNvxoudtax5YqZxLvLPaW3tQ==

    2. http://site5.way2sms.com/jsp/UserRegistration.jsp?id=POh2+s6S6QrZ23wiLqRtcUxhICXvE1olq7TTlXVYuCWZxLvLPaW3tQ==

    Enjoy.....!! Friends....!!
    ==========Fine Work for Html & JavaScript Codes=================

    ReplyDelete
  24. I am not getting my Action value... What should i do?

    ReplyDelete
  25. Try officially supported free service fowiz, a free sms api provider. It is HTTP based, can send SMS using any programming language.

    ReplyDelete
  26. not working.... and there is no action value ... how can i get that??? plz help...

    er.markar@gmail.com

    ReplyDelete
  27. I am not getting Action key,What should I do?
    koshambhi.vyas106@yahoo.com

    ReplyDelete
  28. Bulk SMS are best way to communicate personal computer to mobile phone and bulk sms has become the most effective, cheap and reliable means of communication, advertising, marketing, also.
    Thanks for sharing...here you find similar one like you API SMS Service Provider in India.

    ReplyDelete
  29. Nice blog. Use our powerful Bulk SMS API In JAVA India to start sending bulk SMS, personalize SMS and schedule SMS. You might know that Java is one of the most popular programming languages today.

    ReplyDelete