Wednesday, May 8, 2013

How to Send a SMS Using SMSLib


1. Install the latest version of SMSLib on your PC by downloading the program from the SMSLib website. See References.
2. Ensure your PC is equipped with these software components that enable SMSLib to function properly. You need SUN JDK 1.6 or newer, Java Communications Library, Apache ANT for building sources, Apache log4j, Apache Jakarta Commons-NET and JSMPP Library.
3. Connect your cell phone to the PC with a serial cable or via Bluetooth.
4. Run the SMSLib program on your PC and choose the gateway -- the device or wireless service -- through which you will send text messages. SMSLib has five predefined gateways and each has different initialization parameters. The gateways are: Serial Modem; IP Modem; Clickatell; BulkSMS; and SMPP. Other gateways can be added.
5. Prepapre to compile your text message on the computer by typing the following syntax:(Service).startService()
6. Create your message in the SMSLib program window on your PC and input the cell phone number of the recipient. Send the message and wait to receive the delivery status notification.

No comments:

Post a Comment