File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Connecting to the world" Watch "Connecting to the world" New topic

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.
I agree. Here's the link:
subject: Connecting to the world
It's not a secret anymore!