Hello! I am aware that there is a Java API for sending SMS messages from a PC onto a mobile phone. But I dont know anything about the working environment. Maybe some services must be installed on the PC for it to work or the API does all that itself. If a working environment must be set could you please forward me to a page that describes in detail how to do it?
Hello From my experience you need to have a contract with a SMS service provider. I used some API from Nokia (forum.nokia.com) for sending MMS messages through a server they own.
Better, faster, lighter Java ... you mean Ruby right ?
SCEA5,SCBCD1.3,SCWCD5,SCJP1.4 - memories from my youth.
fedai gandjaliyev
Ranch Hand
Joined: Dec 05, 2005
Posts: 99
posted
0
What if I do it through an SMTP server? What gateway do I need to connect to the server so that it can send SMS messages to mobile phones?
fedai gandjaliyev
Ranch Hand
Joined: Dec 05, 2005
Posts: 99
posted
0
Did I say something wrong? I just asked a question. It's already been a week that no one wants to answer my question. I want to send SMS messages from Java through a mobile phone connected to my PC. What tools do I need? A phone. What kind of phone would you advise? An API. javax.comm.* or something else? What exactly? Please Help!
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
no one wants to answer my question
I'd be careful before drawing that conclusion. Maybe nobody can answer your question. Googling for "java sms" brings up lots of pages that look like they have relevant information. [ February 28, 2006: Message edited by: Ulf Dittmer ]
The first thing you need to do is find a SMS gateway service provider. The service providers provide the gateway between the internet and the SMS network.
Most service providers provide a number of mechanism for generating SMS to name a few HTTP, FTP, XML-RPC, SMTP.
If your specifically interested in Java libraries you can try
If it is critial for you to determine if a SMS message has been sent, I would advise not using SMTP, as it's difficult to get the return code.
regards
Jason
fedai gandjaliyev
Ranch Hand
Joined: Dec 05, 2005
Posts: 99
posted
0
As I understand if you send SMS from Java through a phone connected to PC then you dont need any third-party tool. My problem is I'm going to purchase a mobile phone to begin developing it but I dont know which one to purchase exactly.
I just need to know if this 1. Mobile phone 2. Cable to connect it to USB 3. javax.comm.* package installed 4. A Java API to communicate with the phone is enough to do what I want to? If the API is jSMS will any Nokia or Erricson do? If not which Nokia model exactly will support it? Waiting for reply....... Thank you very much!
Eduardo Marques
Ranch Hand
Joined: Feb 19, 2005
Posts: 231
posted
0
Oh sorry I misread this thread ... you want to send from PC to mobile phone ... in terms of SMS gateways check http://kannel.org (opensource) or http://nowsms.org (commercial) [ March 01, 2006: Message edited by: Eduardo Marques ]
Ramesh Chandra
Greenhorn
Joined: Oct 20, 2005
Posts: 17
posted
0
hi fedai, u can tryout the simplewire protocol for sending SMS from java. Just download the SDK and u will have some samples for executing u can reach there at www.simplewire.com
Bye Ramesh Chandra
fedai gandjaliyev
Ranch Hand
Joined: Dec 05, 2005
Posts: 99
posted
0
Hello! I'm developing a project a part of which sending SMS messages from Java. I've attached a phone to my PC and can send messages quite comfortably. The API that I use is jSMS 2-1-2. To send a message you just need this part of code
service = new GsmSmsService(); service.init(config); Message msg = new Message(); msg.setRecipient(�+411234567�); msg.setMessage("Worked!"); //Connecting to the device service.connect(); service.sendMessage(msg);
I'm going to send from 25 to 30 messages each time a use this project. My question is do I need to create a new message (and/or service) for each receipent or I need just do smth like this