GeeCON Prague 2014*
The moose likes Other Java Products and Servers and the fly likes SMS System 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 "SMS System" Watch "SMS System" New topic
Author

SMS System

Anurag Dhiman
Greenhorn

Joined: Feb 10, 2012
Posts: 28
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

Joined: Jun 25, 2001
Posts: 16095
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
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).


Ping & DNS - my free Android networking tools app
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

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
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
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

Joined: Jun 25, 2001
Posts: 16095
    
  21

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.
 
GeeCON Prague 2014
 
subject: SMS System