aspose file tools*
The moose likes Java Micro Edition and the fly likes Sample code to send an SMS ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Sample code to send an SMS ?" Watch "Sample code to send an SMS ?" New topic
Author

Sample code to send an SMS ?

sharmila raman
Greenhorn

Joined: Jun 17, 2007
Posts: 5
Hi
I have a problem in sending an SMS .Port number needs to be specified ,signing of MIDlet is absolutely necessary to send an SMS is what I happened to read .I�m completely new to J2ME it will be really great if anyone can provide me with a sample code to send an SMS using J2ME
Thanks in advance
[ June 18, 2007: Message edited by: sharmila raman ]
Ramender Mall
Ranch Hand

Joined: Sep 08, 2005
Posts: 311
Have you tried using the wireless messaging api? I am not aware of the signing part, as I already had the signing certificate and it works fully well in the signed app..
BTW, you dont need to specify a port number if you are using wireless messaging api.




- Ramy..
[ June 18, 2007: Message edited by: Ramender Mall ]
sharmila raman
Greenhorn

Joined: Jun 17, 2007
Posts: 5
Thanks a lot . It worked fine without the port number
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
WMA is the standard way to go, if you want to target a variety of phones.

Btw, if you don't use port numbers, that means you'll be addressing the remote phone's SMS inbox. If you want a MIDlet to catch these SMS messages, then you must use a port.


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sample code to send an SMS ?