This post presents a snippet for sending short text messages from J2Me applications.
The com.sun.midp.io.j2me.sms package provides an API for the Short Message Service Messaging system and allows MIDlet to access SMS functionality on a GSM mobile device. You need javax.wireless.messaging.sms.send premission to send SMS messages from your J2ME application. The sample code is presented below: Java Code: sender = (MessageConnection)Connector.open("sms://");
sender = (MessageConnection)Connector.open("sms://");