tags:

views:

98

answers:

1

how to send sms to mobile using java code

+2  A: 

SMS is provided for by mobile operators around the globe. Typically there are a number of ways in which an application can send originate messages, including APIs provided by the networks themselves, or third-parties.

If you don't know which network the recipient is on, then it can be a problem to use the network provided APIs, especially when taking into account mobile number portability. It's far easier to make use of a third-party which takes care of this and a host of other issues.

Have a look at BulkSMS http://www.bulksms.com/int/docs/eapi/

Sending a message involves simply making an HTTP request, they provide a sample of Java to send using their API, http://www.bulksms.com/int/docs/eapi/code_samples/java/

ptomli