User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 397,719 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,568 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 579 | Replies: 7
Reply
Join Date: Jan 2008
Posts: 12
Reputation: senthil_sivanat is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
senthil_sivanat senthil_sivanat is offline Offline
Newbie Poster

Sending SMS from JSP

  #1  
Jul 23rd, 2008
I want to send an SMS from my server i.e from my webpage. I need to know do i need any device related to this or can it be done with programming. Is SMPP is a protocol like SMTP or SMPP is a hardware. please reply me quickly.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2007
Location: Mumbai(Bombay), India
Posts: 158
Reputation: stephen84s is on a distinguished road 
Rep Power: 2
Solved Threads: 23
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Junior Poster

Re: Sending SMS from JSP

  #2  
Jul 24th, 2008
SMPP is a protocol, it is used to connect to SMSCs (Short Message Service Centres) which connect to actuall providers via SS7 which is connected to hardware.
There are quite a few Java APIs available for SMPP, my favourite is OpenSMPP, But doing such processing directly in JSP is not advisable, use JSPs just for displaying your content your processing should be done is Servlets, beans.
Last edited by stephen84s : Jul 24th, 2008 at 9:33 am. Reason: Link to OpenSMPP changed
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
Reply With Quote  
Join Date: Jan 2008
Posts: 12
Reputation: senthil_sivanat is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
senthil_sivanat senthil_sivanat is offline Offline
Newbie Poster

Re: Sending SMS from JSP

  #3  
Jul 24th, 2008
Ok fine. I need the code to send SMS. Can i actually send the sms for free or do i need to signup any contract with sms providers for this.
Reply With Quote  
Join Date: Jul 2007
Location: Mumbai(Bombay), India
Posts: 158
Reputation: stephen84s is on a distinguished road 
Rep Power: 2
Solved Threads: 23
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Junior Poster

Re: Sending SMS from JSP

  #4  
Jul 24th, 2008
Ok fine. I need the code to send SMS.
I am not here to give you ready to eat food, just to help. See the javadocs of OpenSMPP and find your way around.

Can i actually send the sms for free or do i need to signup any contract with sms providers for this

You definitely need to sign up with a provider to send smses. Just search for "bulk sms providers" and you should get a pretty comprehensive list. I am currently not aware of any providers who would allow you to use their service for free (apart from testing their service that is)

Alternatively you can also send messages using the GSM Modem. For that you can check out the SMSLib API, the GSM Modems use a SIM Card which is charged for every SMS you send.
Last edited by stephen84s : Jul 24th, 2008 at 10:38 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
Reply With Quote  
Join Date: Jan 2008
Posts: 12
Reputation: senthil_sivanat is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
senthil_sivanat senthil_sivanat is offline Offline
Newbie Poster

Re: Sending SMS from JSP

  #5  
32 Days Ago
Thanks for the reply.

Can u tell me approximate price of GSM modem. I searched internet lot of models are available. Do you any Brand in Mind. ? Suggest me i have to buy

Thanks in advance
Reply With Quote  
Join Date: Jul 2007
Location: Mumbai(Bombay), India
Posts: 158
Reputation: stephen84s is on a distinguished road 
Rep Power: 2
Solved Threads: 23
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Junior Poster

Re: Sending SMS from JSP

  #6  
31 Days Ago
Well I have worked with an older version of the BenQ GSM/GPRS G-32R Modem, which connects on the serial port of my PC, It should cost you around 6000 to 8000 Indian Rupees,
There are also a few modems which connect on the USB port, but I haven't worked with them.
Also now-a-days many cell phones for ex the Nokia 7110 can be used as a GSM Modem by using the DLR-3 cable. This is a good option for you currently as you seem to be just starting up with messaging as you may be be to use your cell phone directly rather that buying any equipment before hand.

The advantage that GSM Modem offers is that you will also be able to receive Smses, but in case you are planning for a high volume of SMSes to send you should look the bulksms providers option cause it may be cheaper and the speed of sending SMSes will definitely be faster (GSM Modems are slower, they might send at most 3-4 SMSes per minute depending upon your model).
Last edited by stephen84s : 31 Days Ago at 4:40 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
Reply With Quote  
Join Date: Jan 2008
Posts: 12
Reputation: senthil_sivanat is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
senthil_sivanat senthil_sivanat is offline Offline
Newbie Poster

Re: Sending SMS from JSP

  #7  
31 Days Ago
Thanks for your answer.

Can i mask the sender if am sending through GSM modem. i.e i want a name "klnce" as the sender name instead of mobile number.

Thanks in advance.
Reply With Quote  
Join Date: Jul 2007
Location: Mumbai(Bombay), India
Posts: 158
Reputation: stephen84s is on a distinguished road 
Rep Power: 2
Solved Threads: 23
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Junior Poster

Re: Sending SMS from JSP

  #8  
31 Days Ago
Can i mask the sender if am sending through GSM modem. i.e i want a name "klnce" as the sender name instead of mobile number.

No Idea about that as I have never tried it with a GSM Modem.

But I do know for a fact that many bulk sms providers do allow you to set your own sender-id, depending on the destination you are sending to. (cause in some countries you need to pre-register the sender-id you would like to use)
Last edited by stephen84s : 31 Days Ago at 10:15 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 2:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC