11-16-2010 10:21 PM
What is the prefered way of sending SMS's?
mc = (MessageConnection) Connector.open("sms://+" + Number + ":" + Port);
tm = (TextMessage) mc.newMessage(MessageConnection.TEXT_MESSAGE);
Is how I do it, but when I do I get
Error: java.lang.IllegalArgumentException: invalid destination address: must begin with sms:// or //
from the mc.send() line, but I'm not sure why. I assume it's the mc.close(), but how else am I supposed to close the sender after a message is sent.
11-16-2010 11:47 PM
just remove "." after Number.
11-16-2010 11:48 PM
please ignore earlier post.
i have faced same problem as you.
when i have removed port it works fine.
so just tried it.