Update 2012-01-17 : I just updated the code to send sms. Now you guys don’t worry abt the action param, since the class itself handle it for everyone. I recommend you to disable the warnings, else you will receive lots due to imperfect html provided by way2sms.
Update 2012-01-16 : If you are still not receiving SMS while using the updated code from github, you should probably need to do one more change in code. As I mention in this blog the the parameter Action=abfghst5654g is unique for each user. So you need to find the value of action for your login. You can easily find it by following these steps
- Go to way2sms.com and login with your credentials.
- GoTo send SMS page.
- Inspect webpage with firebug(Firefox) or Developer tools (Chrome).
I will update here, once I update the code to find the value of action for each user.
1 year before I updated the Ashwin anand’s php code for sending sms from php. later many of them reported that my code too is not work. So now i again updating it and hosting it in Github. You are free to review, fork and edit it. You can download it from github repo.
The change I made from older version is
in classSms.php, line no. 94.
There I updated Action=abfghst5654g after checking in way2sms.com with firebug.Its a hidden field in the home page.