aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Send SMS from Java Application for free Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Send SMS from Java Application for free" Watch "Send SMS from Java Application for free" New topic
Author

Send SMS from Java Application for free

Rajith Gamage
Greenhorn

Joined: Jun 17, 2010
Posts: 19
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

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sri ramvaithiyanathan
Ranch Hand

Joined: Nov 20, 2010
Posts: 109
Hi,
You need modem and sim card.
click this Link for sending sms through java program.

Regards,
Sriram


For java examples,ebooks,interview questions,visit this blog
http://periodicupdates.blogspot.com/
Rajith Gamage
Greenhorn

Joined: Jun 17, 2010
Posts: 19
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

Joined: Nov 20, 2010
Posts: 109
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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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.


Ping & DNS - my free Android networking tools app
Rajith Gamage
Greenhorn

Joined: Jun 17, 2010
Posts: 19
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

Joined: Nov 20, 2010
Posts: 109
@@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

Joined: Dec 31, 2007
Posts: 22
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
 
Consider Paul's rocket mass heater.
 
subject: Send SMS from Java Application for free