Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : Ajay

Comment Added at : 2010-09-04 03:01:24

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
To RUN this code, follow below steps

1 Add main() method in code.

public static void main(String args[]) {
SMSClient a = new SMSClient(1); //
// arg 1 - send number
// arg 2 - Message
a.sendMessage("+91111100", "11111");
}

2 - Download [from net] javax.Comm jar (javax.comm.NoSuchPortException )
comm.jar
win32com.dll
javax.comm.properties
Make sure all 3 file should be in same folder

3 - Configure Message center
Message Center number is available on mobile, check following options
Goto Messaging > Options > Settings > Text message > Service centre
Update the number on class.Sender.csca [variable]


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. As soon as I added common-logging-1.1.1.jar My all
View Tutorial          By: shrawan kumar at 2011-10-30 12:06:50

2. Nice example. Thank you very much.
View Tutorial          By: vinod at 2012-06-19 11:19:53

3. frnds i want serial communication over beaglebone
View Tutorial          By: Rajneesh at 2015-04-12 11:23:16

4. Thanks for your tutorial.
View Tutorial          By: pre pais at 2015-01-09 00:14:29

5. Hello! May I know where is the "main" fu
View Tutorial          By: Angelia at 2009-06-25 18:54:28

6. Thank you, you save my day!!
View Tutorial          By: jano at 2011-05-26 17:20:47

7. So simple..Very easy to understand
View Tutorial          By: G.Tejasree at 2011-11-05 11:51:38

8. In the case of Basic validation is it must to spec
View Tutorial          By: Uma shankar at 2014-07-09 00:58:05

9. the language of your information is easu and more
View Tutorial          By: shivprakashmeena at 2010-08-06 22:18:09

10. I running this on localhost offline and getting er
View Tutorial          By: nitisha at 2011-05-14 09:18:16