• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Send SMS from Java Application for free

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I send free SMS from web based java application ? Is there a way to do that ? I have the code to do that but I want to know how to do that ? Because to send sms I want to bye the SMSC from like telco companies. Instead of doing that is there a way to do in free ?

Thanks
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to google for a free SMS gateway. Not sure there are that many these days. You might just have to buy a subscription to a commercial one.
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You need modem and sim card.
click this Link for sending sms through java program.

Regards,
Sriram
 
Rajith Gamage
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

sri ramvaithiyanathan wrote:Hi,
I did this project.we bought modem for this and one sim card.
click this Link for sending sms through java program.

Regards,
Sriram



thanks for the link.. i go through your code... now i cannot test it because i do not have a dongle. In your code you declare a variable called phone number. so is it the sim number that you brought ? If you can explain the code it will be a big help for me.
 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Phone number is the number which you want to send sms.
ie recipient number.

The string line1,line2,line3 are AT commands.Want to know more about AT commands google it.
Those AT commands are used to send sms.

Rest of the things you can easily understand.
Place jar files and dll files in right folder.Else it will create more problem.

Regards,
Sriram
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Those AT commands are used to send sms.


That sounds as if a phone connected to the machine through a serial connection (or possibly a USB connection) is required. While that is not impossible, it's most likely impractical for a server-based application. It also wouldn't be free unless the mobile phone has unlimited SMS.
 
Rajith Gamage
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

sri ramvaithiyanathan wrote:Phone number is the number which you want to send sms.
ie recipient number.

The string line1,line2,line3 are AT commands.Want to know more about AT commands google it.
Those AT commands are used to send sms.

Rest of the things you can easily understand.
Place jar files and dll files in right folder.Else it will create more problem.

Regards,
Sriram



thanks for your reply.but in the code why did you use if((portId.getName().equals("COM1"))) . what is the special with COM1 ? Do I have to change it ?
 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@@Rajith --->No need to change the portId.while running program it will check whether modem or device is connected to that com1 port.If its connected then it will execute the program.

@@Ulf -->Ya I agree.Its fully depend upon the sim provider.

Regards,
Sriram.V
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi SriRam

I have connected the device and excute your program but no sms send ....it is just giving below log

SMS Sending........COM1
SMS Sending........COM2
SMS Sending........COM3
sms sending port--->COM3
SMS Sending........COM1
SMS Sending........COM2
SMS Sending........COM3
sms sending port--->COM3
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!