1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.
Ads by Lake Quincy Media

Monday, December 7, 2009

send SMS using way2sms updated by sujith and joji

// Send SMS to each of the phone numbers
u = null; uc = null;
for (long num : numbers)
{
content = "HiddenAction=instantsms&login=&pass=&custid=undefined&MobNo=" + num + "&textArea=" + msg;


change this content part in previous post by

content = "custid=undefined&HiddenAction=instantsms&Action=custfrom50000&login=&pass=&MobNo=" + phone + "&textArea=" + msg+"&qlogin1=Gmail+Id&qpass1=******&gincheck=on&ylogin1=Yahoo+Id&ypass1=******&yincheck=on";

cellphone application providers cochin kerala

economic web hosting web development plans kerala cochin

17 comments:

  1. i've a doubt! Why do you chk for Gmail and Yahoo Login? is it necessary?

    ReplyDelete
  2. ya that is required for the working of this application

    ReplyDelete
  3. uc.setRequestProperty("Referer", "http://wwwg.way2sms.com//entry.jsp");

    adding the to code ...
    but not recieved by the mobile

    ReplyDelete
  4. but, it was working for me, even without it! But, now suddenly it has stopped working saying 500 ERROR @ auth.cl page! :( Please Help and Updated API download isn't working too!

    ReplyDelete
  5. Hi,

    I am in search of API code that i can use in my VB .net 2008 application. I am unable to find one. If anyone can help me in getting the correct URL or the code that i have to hit

    ReplyDelete
  6. same goes with me

    ReplyDelete
  7. its working fine but the message is not recieved

    ReplyDelete
  8. hi,
    i used this code in c#.net windows application . everything works fine but message not received to mobile.. here the code find the error and reply urgent..

    ReplyDelete
  9. Yeah its really very good and informative post. thanks for sharing with us....

    ReplyDelete
  10. Hi,
    I am using the Java API, its working fine but message is not sent..

    ReplyDelete
  11. The values other than the userid and password you will get from the source of the way2sms send sms page.You can see lot of hidden fields in this page. value of action hidden field begin with custfrom and some random numbers append with this, So you have to first logged into the site and check the value of the hidden input field and replace that into your code.

    ReplyDelete
  12. The values other than the userid and password you will get from the source of the way2sms send sms page.You can see lot of hidden fields in this page.value of hidden field Action will vary for each customer. So you have to first logged into the site and check the value of the hidden input field and replace that into your code.

    ReplyDelete
  13. Hi All,

    After changing the `content` string to
    content = "custid=&HiddenAction=instantsms&Action=custfrom750000&login=&pass=&MobNo="+num+"&textArea="+msg+"&Send=Send";

    worked for me.

    Thanks for the hack.

    ReplyDelete
  14. hey,

    this code did work a few days back. But,its not working now.
    Could you please post a recent updated code for sending sms through way2sms. I need it urgently...

    ReplyDelete
  15. I applied the code in Java servlet,it is working but the message is not received in mobile... have anyone that correctable code? please help me

    ReplyDelete
  16. Everyone is facing the same problem, and I feel disappointed to see that there is no solution in this post to this problem. I am still looking for it, as soon I get it will update here.

    ReplyDelete

Related Posts with Thumbnails