How to use sms.zip which i provided in my last blog
In the sms.zip you can see
- 2 files(classSms.php and sendsms.php)
- Folder named nusoap
main class file for sending sms
sendsms.php
demo file
Let me consider you have two files in your application
ie.,
- The form to enter the recepiants number and message
- The action page of the form
- Include the sms class
require_once('classSms.php');
- Create an object for the kitesSms class in classSms.php
1. way2sms username
2. way2sms password
$ob = new kitesSms("9895012345","password");
- Call the sendSMSToMany function with the object created in the previous step
1. The recipients phone number/numbers
if more than one recipient seperate each numbers using ;(semicolon)
2. The message you want to send
$message=$ob->sendSMSToMany("989512345","This is a testing message");3. The function returns "done" if message send is successfull
the return type will be stored in $message variable
That it you have done it
note:- the username and password is used is for demo purpose only