HI,
to send SMS either u have to buy any
SMS gate way or u have to setup a
GSM modem.
Using GM modem :
http://www.codeproject.com/KB/database/SMS_message_from_SQL.aspx
API Integration (Application Programming Interface) of gateway4sms.com
u have to create a account in that site
The API works on GET and POST METHOD, and the url to be used is
http://bulksms.gateway4sms.com/pushsms.php
The variables to be used are:
username : your_username
passwordyour_password
senderAlphanumeric/Number SenderID for GSM Recipients
cdmasenderNumber SenderID for CDMA Recipients
toRecipient Number (one at a time)
messageActual Message to be sent
A sample HTTP API Call for Single Recipient would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid&to=myrecipient&message=Hello
A sample HTTP API Call for Single Recipient with Scheduling (4th January 2009 at 3:30 PM) would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid&to=myrecipient&message=Hello&shtime=04-01-2009-15-30
A sample HTTP API Call for Multiple Recipients would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=Hello
The reply will be a message id, seperated by comma.
A sample HTTP API Call for Sending UNICODE message would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=unicode message&unicode=1
The reply will be a message id, seperated by comma.
A sample HTTP API Call for Sending FLASH message would be:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=message&flash=1
The reply will be a message id, seperated by comma.
A sample HTTP API Call for Picture Messagese:
http://bulksms.gateway4sms.com/pushsms.php?username=your_username&password=your_password
&sender=mysenderid&cdmasender=mycdmasenderid
&to=myrecipient&message=message&picture=1
Message would the hexcode of otb file (You should convert normal image file to otb file).
To fetch DLR use (Only one recipient DLR at a time):
http://bulksms.gateway4sms.com/fetchdlr.php?msgid=message_id
Messages with spaces/special characters like &, %, * etc. are to be url encoded.
A sample HTTP API Call for Balance Check:
http://bulksms.gateway4sms.com/balancecheck.php?username=your_username&password=your_password
A sample HTTP API Call to Request Sender id:
http://bulksms.gateway4sms.com/addsender.php?username=''&password=your_password&sender=your_sender&type=(gsm
or cdma)
Example: http://bulksms.gateway4sms.com/addsender.php?username=''&password=your_password&sender=mysender&type=gsm
A sample HTTP API Call to delete scheduled messages:
http://bulksms.gateway4sms.com/deleteshedule.php?username=''&password=your_password&msgid=MyId1,MyId2,MyId3
*MyId1,MyId2,MyId3.... are the message id's.
A sample HTTP API Call to get your Senderids:
http://bulksms.gateway4sms.com/getsenderids.php?username=''&password=your_password