File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Connecting to the world Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Connecting to the world" Watch "Connecting to the world" New topic
Author

Connecting to the world

Ed Dablin
Ranch Hand

Joined: Oct 09, 2012
Posts: 32
What is the easiest / simplest way to connect my java program to the world?
Simply put, my program takes a little user input, and returns the answer.
I would now like to make my program available to others.
In order of preference:
1. User sends SMS text and gets back an SMS text (not everyone owns a computer or smart phone)
2. User send email and gets back an email
3. User interacts via web browser. Does this necessitate converting my program to a servlet?


Phil English
Ranch Hand

Joined: Jun 18, 2012
Posts: 62

For SMS you could look at an SMS gateway. Which provider will depend on your country.

That gateway might also handle emails. Otherwise you could look at JavaMail.
Ed Dablin
Ranch Hand

Joined: Oct 09, 2012
Posts: 32
OK I've managed to get JavaMail to work with Gmail. I can send and receive emails.
I've failed to get Hotmail to work.
Thanks for the comment about SMS Gateways. I have one in mind, but would be pleased to hear from anyone who has succeeded
in sending and receiving SMS text messages from their Java programs.
 
 
subject: Connecting to the world
 
Similar Threads
sending sms
sending SMS?
Communicate between JSP and Servlet
keep track of a field in database
Need to Invoke a Java Program from a trigger