File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Reg::java Examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Reg::java Examples" Watch "Reg::java Examples" New topic

Reg::java Examples

suresh senapathi

Joined: Jan 14, 2009
Posts: 13
Hi All,

I need java example to send text sms to mobile from pc.

I tried through many sites but all are depend on other 3rd party thing.

Any one help me for freewares like demo thing.

Thanks in advance.

Rob Spoor

Joined: Oct 27, 2005
Posts: 20275

You can't do this without a 3rd party, unless your PC has a SIM card built in. And you simply aren't going to find a completely free party for this, since sending SMS messages costs money. I don't think anyone is willing to give away money like that. Perhaps you don't have to pay but you still end up "paying" by looking at a lot and a lot of ads, and probably also ads inside the SMS messages.

And please use a meaningful subject line.. "Reg::java Examples" isn't really saying anything. You can edit your post to change it.

How To Ask Questions How To Answer Questions
suresh senapathi

Joined: Jan 14, 2009
Posts: 13

Thanks for the reply.
I am not asking complete freware.
we are sending sms through some sites right?
Like that for testing purose i asking.

Thanks again.
Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

You can simply connect some mobile phone to your pc via bluetooth and then execute AT commands on that mobile phone to send SMS.

Here's example that i've copied from google:

Note that such AT commands may differ on different mobile phones and other ones may not support sending sms via AT commands at all.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46367
Not a "beginning" question. Moving.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Most SMS services can be addressed via a "magic email address", which usually is something like "". Just send a 1-line email of 140 characters or less to that address from the PC. Works great.

The hard part is making it general-purpose. Since the email address varies depending on the receiver's phone service provider, you have either know what that provider's email address conventions are or go through a generic gateway service that can find out and route it for you.

There's a fairly comprehensive list of the email address forms on the Wikipedia, including providers in both the US and in India.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Reg::java Examples
It's not a secret anymore!