none
sending sms through java RRS feed

  • Question

  • i am working on a project which can send sms from pc, but i can not implement this facility  through  java in my  project
    please  help  me  regarding  this  problem.
    Thursday, September 27, 2007 8:41 AM

Answers

  • poor fellow take this........

    import com.simplewire.sms.*;

    public class SendSMS
    {
        public static void main(String[] args) throws Exception
        {
            // Create SMS Object
            SMS sms = new SMS();

            // Set Message Properties
            sms.setMsgPin("+11005101234");
            sms.setMsgFrom("Demo");
            sms.setMsgCallback("+11005551212");
            sms.setMsgText("Hello World From Simplewire!");

            // Send Message
            sms.msgSend();
        }

    Thursday, September 27, 2007 12:55 PM

All replies

  • poor fellow take this........

    import com.simplewire.sms.*;

    public class SendSMS
    {
        public static void main(String[] args) throws Exception
        {
            // Create SMS Object
            SMS sms = new SMS();

            // Set Message Properties
            sms.setMsgPin("+11005101234");
            sms.setMsgFrom("Demo");
            sms.setMsgCallback("+11005551212");
            sms.setMsgText("Hello World From Simplewire!");

            // Send Message
            sms.msgSend();
        }

    Thursday, September 27, 2007 12:55 PM
  • tats nice ankit... thanks...

     

    Thursday, September 27, 2007 2:40 PM
  • Hi Ankit,

    is this code fully correct..

    i get some errors..

     

    Thursday, September 27, 2007 3:51 PM
  • Java doesnt have any class like SMS of its own...but this program can b run by installing the Java SMS SDK on ur system try googling "Java SMS SDK" or try this link: SMS SDK
    Thursday, September 27, 2007 4:00 PM

  • great work buddy..........
    Friday, September 28, 2007 2:31 AM
  • Hi,



    Can any one explain how does msg transfer to mobile with this SMS JAVA code..?

    Does it require any SIM CARD?

    Friday, September 28, 2007 4:31 PM
  • this doesnt require any SIM card, jus an internet connection wud do...
    Saturday, September 29, 2007 4:47 PM
  • ya ofcourse it does'nt need a sim card all the data transfer is done by the phone line...its just like sending a  sms thro ur landline..here the syatem acts as an interface...
    Saturday, September 29, 2007 5:23 PM