That was the problem. I did realize that and set it to 0 as you had suggested. It worked fine. Thanks for your help.
On May 14, 8:59 am, Thanasis <[email protected]> wrote: > Did you also set the source port to zero (0)? > > On May 14, 1:31 am, Sri <[email protected]> wrote: > > > I did set the destination port on the message but the SMS is received > > by the Inbox directly than the Midlet. > > > On May 13, 2:35 pm, Thanasis <[email protected]> wrote: > > > > Use the setSrcPort() and setDstPort() message methods before you send > > > out your message. Set the first to 0 (zero) and the second to the port > > > your midlet listens to. > > > > On May 13, 10:22 pm, Sri <[email protected]> wrote: > > > > > How do I send SMS to a SMS server that is listening to a specific > > > > port? For example, I have a J2ME midlet listening on a port for > > > > receiving sms messages. I am getting error sending it through. I am > > > > using smsnumber + ":" + portnumber. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib User Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
