Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send SMS ?

 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir,

I need a java code that send SMS from client. Actully, I want to configure my RMI code, If any server will be down immediatly Administrator will be informed by SMS.

Thanking You
Yatin.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need special software libraries and maybe hardware as well.
What you need specifically depends on whether you will be using a 3rd party to actually send the messages or if you want to have your own hardware for sending them onto the network.
For small volumes the first approach will be a lot cheaper per message.

Use your favourite search engine to find lists of companies that provide these services, there are quite a few.
They will provide you with the APIs needed (or be able to tell you where to get them) and whatever else you need.
 
Vj Kamath
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SMS are sent in the same way that mails are sent. All mobile numbers actually correspond to a email address.
For example:
If you want to sent an SMS to the cell phone with number 9845212345
which might be a Airtel Karnataka number, then you can send a mail to
9845212345@airtelkk.com

Similary if you want to send it to South Zone Hutch number say 9886454321
then send a mail to 9886454321@south.hutch.co.in

So what you need to do is find the corresponding email address of the number you want to send the SMS to.
Then use the simple mail APIs provided by Java to send the mail.
 
Ashish Chopra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i have been studying GSM for the past 2 months but didn't know that a mobile number is actually an e-mail id....to tell u a fact it is not.

as far as the ids that u have mentioned,viz.9845212345@airtelkk.com, it is valid ONLY if your network provider gives you an e-mail account on its domain with your mobile number as its ID. So this concept(of sms being sent as e-mails) is entirely wrong.

regards..
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So Ashish ,

if suppose no email id corresponding to mobile no. is provided by Service Provider .then what is the logic of sending SMS throgh computer .

there r some site which providing this service .

what u think, how it is possible .

bye
 
Ashish Chopra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'll tell u how it happens.

when u send a message from your computer to a mobile number(using yahoo messgr or something like that), what happens is that the yahoo server sends a message to the service provider (it finds out who is the service provider from a list of providers with whom yahoo has a tie up) containing the mobile number & the message that needs to be delivered. the service provider then fwds this message in a sms format to that mobile.

now coming to the <mobile num>@<service_provider>.com. This is a service provided by some operators that allow u to access your sms etc over the net by copying them to an e-mail account in their domain.

hope i have clarified things enough.

regards...
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. You're going to need a contract with an SMS service provider who can send messages to your target network.
They give you an API, you pay them a fee (either a per-message fee and/or a monthly fee in addition to a setup fee just like you would your telephone service provider).

As an alternative (if you send a great many messages) you can purchase and install your own hardware to do the sending in which case the hardware vendor will provide you with the software you need (and an API to access that software).
 
Ashish Chopra
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just one more point in regards to what jerome says...

i guess buying hardware may not be feasible for an individual, as an entire network will have to be set up by you...in which case u become a service provider yourself...

an idea to implement this cud be to write a client that sends such messages to an already existing agent(like yahoo etc.)with the necessary info that can be used by yahoo to fwd these messages...its just a wild idea that i m throwing...maybe someone can research more on this and see if it is feasible or not!!!
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should have moved this earlier -- but better late than never!

I'm moving this to the J2ME forum where its a better fit. So please post your replies there. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic