Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send SMS from Java Application for free

 
Rajith Gamage
Greenhorn
Posts: 19
  • 0
  • 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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • 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.
 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
chinu goyal
Greenhorn
Posts: 22
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic