Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMS System

 
Anurag Dhiman
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone

I want an idea about how to send an sms from a web application to a particular mobile number using jsp servlet.



Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18272
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the easiest ways to do that is to email the SMS message. Most carriers provide an email address of the general form of "11223344@carrier-something.com". The exact format of the username (phone number) and carrier SMS-via-email domain name varies by carrier, but as long as you know which carrier is involved, the Wikipedia lists the rules for many major carriers in the USA, India, and various other countries.

If you do not know (or cannot depend on) the identity of the recipient's mobile phone service carrier, you can subscribe to a gateway service that will handle the SMS mail in a more general-purpose fashion.

Sending an email whose size exceeds the SMS character limit may fail or truncate the message, so keep that in mind.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One difficulty with this approach (besides having to know the carrier) is that not all people may have signed up for plans that include the use of such a service, even if their carrier provides it in general. For a commercial service, the gateway approach would be the more general solution (search for "bulk sms sending" or some such phrase).
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18272
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't follow you, Ulf. As far as I'm aware, if the recipient has SMS receive capabilities, there will be an email address. I've never seen a case where it was something extra that you'd have to sign up for. I'm not sure but what the independent gateway services aren't using the email approach themselves, so if there are exceptions, I would want to be assured of deliverability before putting my money down.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never seen a case where it was something extra that you'd have to sign up for.

I guess it's possible that pricing it like that isn't done in the US, but it certainly is in Europe (or was, when I last shopped around for feature-phone plans a few years back). It's not so much a feature that you could sign up for individually, but would be part of a more expensive plan along with other features.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18272
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Considering that US SMS pricing is infamously expensive to begin with, I suppose they figured that email access could ride along for free.

Moral of story: try before you buy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic