I am developing a j2me application and I was wondering if anyone knew how to send an sms message to an email address. I need to use sms since I am trying to send data through it using an unlimited text plan instead of an unlimited data plan.
I modified a code sample from http://freecode-freecode.blogspot.com/2008/06/how-to-send-sms-in-j2me.html but I can't seem to send a message to an email. The relevant code is as follows...
MessageConnection smsCon= (MessageConnection) Connector.open("sms://[email protected]:25");
TextMessage txtmessage = (TextMessage) smsCon.newMessage(MessageConnection.TEXT_MESSAGE);
txtmessage.setAddress("sms://[email protected]:25");// !!
txtmessage.setPayloadText("Hello from j2me sms api");
smsconn.send(txtmessage);
but it's not working. I have no idea how to approach this. I sent a text message manually through the phone's built in text messager to the email, but I can't seem to do it in code.