String addr = "sms://" + destination;
MessageConnection sender = null;
try {
try {
//connection creation
sender = (MessageConnection) Connector.open(addr);
//message creation
TextMessage msg = (TextMessage) sender.newMessage(MessageConnection.TEXT_MESSAGE);
//message is load
msg.setPayloadText(message);
//send it
sender.send(msg);
} finally {
sender.close();
}
} catch (Exception ex) {
//handle exception
}
what format must the destination be in .. i have a service number a port and a phone number ...