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.
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 ....
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.
Nice code! But it was working till 29-7-2011, since then it gives me url error. what could be the problem?
ReplyDeleteSo..nice
ReplyDeleteit'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
how do u found these web site like-"http://site5.way2sms.com/auth.cl"
ReplyDelete"http://site5.way2sms.com//entry.jsp"
how can i find the links for 160by2 or any other sites plz reply
could i use this api in my private blogger blog ?
ReplyDeletehow
mke a simple htnl code
thanks darling
ReplyDeleteI ll build a GUI now
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...
ReplyDelete@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
It does'nt work gave me same URL connection error!!!!!!!!!
ReplyDeletedoest'nt work even if i change the code wriiten as "site5.way2sms.com"
we got the error of url connection error any guidance what can be done in that regards.. waiting
ReplyDeleteHey but i am not able to get the value for Action from that firebug. can you please guide me.
ReplyDeletehey this code is not working for me.
ReplyDeletenot working for me
ReplyDeleteHey but i am not able to get the value for Action from that firebug. can you please guide me............
ReplyDeleteplz help me.....
my id is sizzling.rishu@gmail.com...
Find < input type="text" value="01029928">
Deletecopy these value for ex ... 01029928
Thats fine it working proerly
not working for me
ReplyDeletenot working for me...............But i am not able to get the value for Action from that firebug.
ReplyDeletehow to find Action value from fire bug ? ? ? ? i have installed that firebug for google crome... please help me...
ReplyDeletehi,
ReplyDeletewhere i put the action value.
plz tell me the code.
plz see this link it's work fine
Deletehttp://ibm-tgmc.blogspot.in/2011/12/sending-sms-via-way2sms-using-java.html
hello,
ReplyDeletei 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
action value:-sa65sdf656fdfd use this i hope it's work
ReplyDeleteWay2sms app available on google play store
ReplyDeletehttps://play.google.com/store/apps/details?id=com.kgs.smscollection
Have You Tried This Site
ReplyDeleteneway4u
This is not working but i found an other script which is working great
ReplyDeletehttp://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
Way2sms api Java/php/.Net
ReplyDeleteIs there is any way to send more than 140 characters.
ReplyDeleteSome time its more than 140 character then it give error.
this code not working pls give some other code..........
ReplyDeleteHi,
ReplyDeletei 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
I am not getting my Action value... What should i do?
ReplyDeleteWay2sms Site : Already Changed
ReplyDeletePlz 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=================
I am not getting my Action value... What should i do?
ReplyDeleteTry officially supported free service fowiz, a free sms api provider. It is HTTP based, can send SMS using any programming language.
ReplyDeletenot working.... and there is no action value ... how can i get that??? plz help...
ReplyDeleteer.markar@gmail.com
I am not getting Action key,What should I do?
ReplyDeletekoshambhi.vyas106@yahoo.com
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.
ReplyDeleteThanks for sharing...here you find similar one like you API SMS Service Provider in India.
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