Description
About
Products
For Teams
Search…
Home
Questions
Tags
Users
Companies
LABS
Discussions
COLLECTIVES
Communities for your favorite technologies. Explore all Collectives
TEAMS
Ask questions, find answers and collaborate at work with https://speedsms.in/ for Teams.
Java send and receive SMS. Free SMS gateway?
Asked 13 years, 5 months ago
Modified 3 years, 8 months ago
Viewed 61k times
18
On some questions here on SOverflow I found THIS. But it says that it is not avaiable at the moment and probably it will never get avaiable.
Based on THIS I realised that there is no need on building my own SMS service.
So the question:
My java application has to send SMS messages to users and receive SMS messages from users. Do I really need to pay some SMS gateway or is there some free SMS GATEWAY (with some limitations ofcourse) that I could use to test my application?
Simplewire Kit looks really simple but the demo examples are failing because I don’ have Simplewire account. Simplewire documentation says that there is a 30-day trial for sending SMS. But this is for two way:
“For 2-Way, demo credits are not available because you will need your own mobile number hosted on Simplewire’s Network. Simplewire supports 2-Way numbers for many different countries and area codes. Please contact Simplewire for more information.”
javasmsgateway
Share
Improve this question
Follow
edited May 23, 2017 at 12:32
Community’s user avatar
CommunityBot
111 silver badge
asked Nov 14, 2010 at 16:32
vale4674’s user avatar
vale4674
4,2411313 gold badges4848 silver badges7272 bronze badges
This might be helpful https://speedsms.in/.com/questions/2570410/how-to-send-sms –
Jigar Joshi
Nov 14, 2010 at 18:17
Add a comment
3 Answers
Sorted by:
Highest score (default)
4
FYI Simplewire is now OpenMarket.com/MXTelecom.com
There are a couple of free SMS gateways but they all attach a SMS ad in your message to pay for the cost. ZeepMobile is the one I hear about the most. As for paying there are a couple of solution but this all depends on your needs.
Two way communication would require the end user to subscribe to your service. There are a few ways to approach this:
Short Code: you could get your own (www.openmarket.com) or share with others (www.clickatell.com) You could use a new service www.twilio.com looks to be good but haven’t tested it yet.
If one way communication is all you need you could so something like email to gateway sms but then you would need to know the carrier the end user is on.
Share
Improve this answer
Follow
answered Nov 24, 2010 at 14:46
Phill Pafford’s user avatar
Phill Pafford
84.3k9191 gold badges265265 silver badges384384 bronze badges
You can also use your mobile device as a gsm modem. It is free. I have found this very interesting for my project. play.google.com/store/apps/details?id=com.gsmmodem –
Muhammad Sadiq
Aug 15, 2018 at 10:33
Add a comment
2
Fowiz offers free Android based solution to send/receive text messages from applications. You need to install their Android App on your device to enable this service and the messages are sent/received on your phone. You can setup CallbackUrl to receive instant notification on the incoming messages. Fowiz also supports short codes, campaign management, voting etc.
Sample code to send message via Fowiz:
String myPasscode = ‘your passcode’;
String myUsername = ‘your fowiz username’;
String toPhoneNumber = ‘recipient phone number’;
String myMessage = ‘your message’;
HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(HTTP_API + “?username=”+myUsername
“&phonenumber=”+toPhoneNumber
+”&message=”+myMessage+”&passcode=”+myPasscode);
HttpResponse response = client.execute(request);
BufferedReader rd = new BufferedReader
(new InputStreamReader(response.getEntity().getContent()));
String line = “”;
StringBuffer response = new StringBuffer();
while ((line = rd.readLine()) != null) {
response.append(line);
}
System.out.println(response.toString());
Source: http://cloud.fowiz.com/2help.html
Share
Improve this answer
Follow
answered Mar 25, 2014 at 5:31
Sunil Manheri’s user avatar
Sunil Manheri
2,34322 gold badges1919 silver badges2020 bronze badges
Add a comment
1
Yes you can build an API your own within 5 minutes. Your android phone can work as Server API to send and receive SMS in your Java code. It is very simple to do that. there are the some basic steps
Download Android GSM Modem application from playstore in your phone GSM Modem FREE SMS in JAVA
You also need helper tool to send or receive SMS without any disturbance. You also extend your functionality in android as well GSM Modem Helper Tool
If you want to learn step by step. there is also guide and video tutorial. Send or receive FREE SMS in Java
public class SMSSender {
public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
String message = “Junk characters? method sendMultipartTextMessage only send text message. If you want to send non text message, you should look to method sendDataMessage. Below is the code excerpt from android cts. It has example on how to send long messages.”;
String phone = “92***********”;
String username = “abcd”;
String password = “1234”;
String address = “http://192.168.1.101”;
String port = “8090”;
URL url = new URL(
address+”:”+port+”/SendSMS?username=”+username+”&password=”+password+
“&phone=”+phone+”&message=”+URLEncoder.encode(message,”UTF-8”));
URLConnection connection = url.openConnection();
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
while((inputLine = bufferedReader.readLine()) !=null){
System.out.println(inputLine);
}
bufferedReader.close();
}
}
Share
Improve this answer
Follow
answered Sep 5, 2019 at 12:28
Muhammad Sadiq’s user avatar
Muhammad Sadiq
43444 silver badges1010 bronze badges
Add a comment
Your Answer
Sign up or log in
Post as a guest
Name
Email
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Not the answer you’re looking for? Browse other questions tagged javasmsgateway or ask your own question.
The Overflow Blog
Want to be a great software engineer? Don’t be a jerk.
Climbing the GenAI decision tree
sponsored post
Featured on Meta
New Focus Styles & Updated Styling for Button Groups
Upcoming initiatives on https://speedsms.in/ and across the Stack Exchange network
Staging Ground is coming back and moving out of beta
Temporary policy: Generative AI (e.g., ChatGPT) is banned
Pausing the 1-rep voting experiment on https://speedsms.in/: reflecting on the…
Linked
153
How to send SMS in Java
14
What can you use to get an application to be able to receive SMS message?
Related
8
Free SMS Gateway Engine
0
How to send sms alerts to mobile using java?
0
sms gateway so I can send a text to a server and get back a response?
3
SMS Based Application How To
0
Sending SMS using Java
0
send sms in java
2
Android use a SMS Gateway
4
Send SMS from Web (are there some providers for this)?
1
What do I use to send SMS messages from an application server?
1
How to send and receive SMS in java?
Hot Network Questions
Detailed derivation for the log likelihood of a logistic multinomial model
What is the apparent size of the Earth and Sun from Moon
Western politicians who accused Israel of starving Gaza
The rotation symmetry group and the reflection group: Is there a name for what they have in common?
AirBnB: cancel confirmed booking with low price as a host
No stomach, how do I eat?
How to keep VMs sorted alphabetically in VMware ESXi vSphere?
Bash 4: unexpected EOF while looking for matching `)’
Do you say “my car is high on fuel” as a counterpart of “my car is low on fuel”?
May a national of Oman enter Ireland under the Short-stay visa waiver programme with an ETA?
Small Sample size
What’s to stop domain registrars from price gouging renewals?
Video Game where you are a part of a group of astronauts stuck on some other planet and you need to build a house and discover stuff
Find highest number of swaps within a set of possible duty swaps with networkx and PuLP
Academic view of graduates who go to US national labs?
How do I deal with crying in front of my supervisor?
Is this formula already known?
First mention of Einstein in Science Fiction?
How precise are future Solar eclipse timing, path and dates, what could change timing/path?
Extreme anxiety before boarding a plane
Why is this satellite’s solar panel oscillating?
What caused pink flares during the eclipse
Do faster responding low-pass filters exist compared to a traditional RC filter?
Cheapest mandatory loop in Magic the Gathering
Question feed
Questions
Help
PRODUCTS
Teams
Advertising
Collectives
Talent
COMPANY
About
Press
Work Here
Legal
Privacy Policy
Terms of Service
Contact Us
Cookie Settings
Cookie Policy
STACK EXCHANGE NETWORK
Technology
Culture & recreation
Life & arts
Science
Professional
Business
API
Data
Blog
Facebook
Twitter
LinkedIn
Instagram
Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA. rev 2024.4.8.7402
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Accept all cookies
Necessary cookies only
Customize settings