This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

guidance needed for java code - send SMS to phone

 
Raghavendra Shockley
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make a java desktop app (preferably without GUI) which will send a SMS to a mobile. Can someone guide me how to do this ?
Alternatively, if the sms feature is too complex to implement, I would like to make the app send an e-mail to the phone instead of sending a sms.

Thanks.
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some mobile networks provide an email address for each cell phone to which you can send text, and it will be forwarded as an SMS. Not all do, though, and it may not be available for the particular number you wish to reach. You'd also need to know which mobile network the number is on, because the email address differs for each provider.

For a general solution, you'd need to sign up with a service that does this (which would of course charge a fee for this). Searching for "sending bulk sms" or some such phrase will find such companies.

Sending email in Java is done via the JavaMail API; you'll find many threads in these forums talking about that if you use the site search.
 
Raghavendra Shockley
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:
For a general solution, you'd need to sign up with a service that does this (which would of course charge a fee for this). Searching for "sending bulk sms" or some such phrase will find such companies.


Thanks for the tips ! I do not want to send bulk sms. I want a pay-per-use provider, if free is not available. Do you know any such services ?
 
Tim Moores
Bartender
Posts: 2895
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The bulk SMS providers probably offer such plans as well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic