• July 24, 2017, 07:32 AM
• Welcome, Guest. Please login or register.
Did you miss your activation email?
Perusing The Shelves

Author Topic: UL Java Code for Sending SMS Program  (Read 17101 times)

Offline raj.it2005

  • PTS Expert
  • *
  • Thank You
  • -Given: 0
  • -Receive: 177
  • Posts: 200
  • Rating : 664
UL Java Code for Sending SMS Program
« on: May 25, 2009, 11:15 PM »
Hi,

You can now send SMS from your PC using GSM modem connected to your computer to your COM port. First of All , you should download comm.jar API to use this component .

It could be downloaded from the following link

You are not allowed to view links. Register or Login

The components contains the following java classes

1.Connection.java --Connection class is used to connect to the COM port from the java program

2. ConnectionException.java-- ConnectionException Class is for handling connection exceptions in your Java program

3. Parameters.java --Parameters program is used to set your COM port properties

4. Sender.java --Sender class sends SMS using the serial connection

5. Client.java --Client class is the main class that can be instantiated in your java program and called to send SMS. This program in turn will use all the above four files internally to send out your SMS.

The PC should contain a modem and an appropriate driver in order to use this component successsfully.

Thanks 
 

Offline raj.it2005

  • PTS Expert
  • *
  • Thank You
  • -Given: 0
  • -Receive: 177
  • Posts: 200
  • Rating : 664

Offline satishd

  • PTS Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
  • Rating : 0
Re: Java Code for Sending SMS Program
« Reply #1 on: January 05, 2010, 08:05 PM »
Hmm.. what's the hardware requirement for sending SMS??

and yes, do we need to add any host address like ISP address to send sms?
 

Offline pank

  • PTS Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
  • Rating : 0
Re: Java Code for Sending SMS Program
« Reply #2 on: July 22, 2010, 10:27 PM »
i need a java project on voice email with complete documentation & code
 

Offline jaganryali

  • PTS Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
  • Rating : 1
Re: Java Code for Sending SMS Program
« Reply #3 on: July 25, 2010, 01:05 AM »
good job but tell me how to arrange them ,hardware requirement and also i have to connect this to my java swings,jdbc application, in which 1000 members are present
 

Offline satyam0024

  • PTS Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
  • Rating : 0
Re: Java Code for Sending SMS Program
« Reply #4 on: February 10, 2011, 09:13 PM »
My name satya doing project on sending mobile alerts to library system and i need to know how this code runs .please any one help me .i compiled above program and after running i am getting an error
" Exception in  thread "main" java.lang.NoSuch MethodError:main
 

Offline fiedel

  • PTS Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
  • Rating : 2
Re: Java Code for Sending SMS Program
« Reply #5 on: July 12, 2011, 01:29 AM »
You need to use an HTTP Java library such as Apache HttpClient. You should also be able to use the built-in URLConnection or HTTPURLConnection class to accomplish this.

For processing received messages, you configure a URL for processing received messages in the "2-way" page of the NowSMS configuration. When NowSMS receives an SMS message, it connects to the URL that you specify, subsituting parameters for the phone number of the sender, text of the message, etc. Test your application by issuing the URL request from a web browser first, then plug it into the 2-way SMS command table in NowSMS when you are ready to test it live.
You are not allowed to view links. Register or Login
 

Offline AnupRana

  • PTS Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
  • Rating : 0
Re: Java Code for Sending SMS Program
« Reply #6 on: July 13, 2011, 05:38 AM »
I am trying to send message through this code.
But i am getting exception


javax.comm.NoSuchPortException
   at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
   at com.SerialConnection.openConnection(SerialConnection.java:71)
   at com.Sender.send(Sender.java:40)
   at com.SMSClient.run(SMSClient.java:35)
   at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
   at com.SerialConnection.openConnection(SerialConnection.java:88)
   at com.Sender.send(Sender.java:40)
   at com.SMSClient.run(SMSClient.java:35)
   at java.lang.Thread.run(Unknown Source)
Error 2 opening registry key HARDWARE\DEVICEMAP\SERIALCOMM

can anyone help me out...
 

Offline unnati

  • PTS Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
  • Rating : 0
Re: Java Code for Sending SMS Program
« Reply #7 on: September 18, 2011, 07:48 PM »
Plz tell me. how to run this above code. i hve to used mobile as a GSM modem. what i have to do. it's very urgent plz repply me.  send me the complete procedure. my email_id is unnatigavhale_gmail.com

Thank u!!!!!!!!
 

Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3354 Views
Last post December 24, 2007, 11:08 AM
by gkunalin
0 Replies
1507 Views
Last post October 23, 2010, 10:43 PM
by mac
0 Replies
1435 Views
Last post August 22, 2011, 07:57 AM
by RainbowGirlAli
0 Replies
1035 Views
Last post August 18, 2012, 03:35 AM
by Desideria
3 Replies
1491 Views
Last post September 02, 2012, 10:32 AM
by WebUser
0 Replies
913 Views
Last post March 01, 2013, 03:44 PM
by WebUser
0 Replies
1261 Views
Last post March 16, 2013, 01:52 AM
by WebUser



Powered by SMFPacks Advanced Attachments Uploader Mod