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 )
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. #include<iostream>

View Tutorial          By: Zohaib Farooq at 2011-05-23 07:58:44

2. Good Explanation of code. But object declaration i
View Tutorial          By: Nitesh at 2011-12-28 12:37:09

3. site is very good explanation is very clear throug
View Tutorial          By: sridevi at 2013-03-20 15:26:29

4. Bad article ! What about the explanation of Messag
View Tutorial          By: Manish at 2011-05-24 04:44:03

5. how does struts work in netbeans 6.9.1?what are th
View Tutorial          By: gunavathi at 2014-05-14 08:00:56

6. Such a nice site for clear and explains the concep
View Tutorial          By: Sandeep at 2011-05-22 06:34:42

7. Hello,

I've got javax.comm and fol

View Tutorial          By: Ashkan at 2009-12-19 21:51:19

8. really friends its very useful site for java begin
View Tutorial          By: shekhar at 2011-05-21 03:04:32

9. Hello, I have executed the above code and it works
View Tutorial          By: Sana at 2010-02-01 03:50:18

10. sr. habla espanol necesito su ayuda... alguno tien
View Tutorial          By: ROGER HERNANDEZ at 2011-09-13 15:20:01