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



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. i am run this code changing the SMSC (ex:+9198860
View Tutorial          By: sknand13 at 2007-11-16 03:27:52

2. Thanks for this. I was checking and double checkin
View Tutorial          By: Alex at 2011-07-10 09:03:56

3. Nice Blog
View Tutorial          By: RAKESH KUMAR at 2015-08-04 10:07:50

4. im having errors in sPort.sendBreak in SerialConne
View Tutorial          By: mrrrc at 2013-03-18 08:54:50

5. Great Work for JAVA Beginners
View Tutorial          By: Sudhir Rajgure at 2009-03-01 02:40:00

6. hii
i have

two varirables
View Tutorial          By: niranjan at 2012-07-31 06:47:36

7. good one.......thanks
View Tutorial          By: raghubir at 2012-11-10 19:01:45

8. Your explanation and example for toString() is gre
View Tutorial          By: Dinesh at 2012-10-19 08:29:13

9. can i have a piece of program so that i can improv
View Tutorial          By: miniboss at 2010-11-12 06:09:41

10. hmmmmmm good
View Tutorial          By: Haritha chinnu at 2012-06-30 09:37:49