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



Comment Added by : raavi.surendra

Comment Added at : 2011-11-16 10:10:31

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi dude's it's working fine for me.first i got no such port exception,to resolve this u need to put win32.dll file in jre/bin and com.jar and javax.properties files in jre/lib,

after that u will get one more problem ***timeout at step2*** to resolve this change u r smsc number it should include +91 in front


i hav used this code .as well as i hav tried reciever also.both are works great for me.thnx dudes...for any queries contact me [email protected]


import java.util.Enumeration;

import javax.comm.CommPortIdentifier;

public class Test {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub

try {
SMSClient s=new SMSClient(0);
s.sendMessage("+919848022338", "hiiii ..how are you,");

} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

}


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. New thread: Thread[One,5,main]
How is the s

View Tutorial          By: Venkatesh at 2013-04-21 07:06:15

2. Hi
Its nice example ..
som

View Tutorial          By: munirasu at 2011-04-01 06:38:46

3. thanx a lot for this tutorial brother!!!!! a great
View Tutorial          By: manas at 2013-04-01 17:18:00

4. thanks!!
View Tutorial          By: eoko at 2011-05-10 23:34:29

5. i want source code of Send SMS on Mobile by Net.
View Tutorial          By: Ankit Patel at 2011-07-05 08:43:14

6. You talk about "dictionary order". How w
View Tutorial          By: Magnus A at 2010-08-31 22:58:06

7. Thanks for the code it save's me a lot of work, ho
View Tutorial          By: Wishkah at 2009-09-04 00:29:16

8. good
View Tutorial          By: gummalla subbarao at 2011-03-09 01:24:58

9. Thank you, Every thing is working fine...!!

View Tutorial          By: Purushothaman at 2009-04-10 07:18:38

10. thank you very much....
View Tutorial          By: divya at 2013-01-06 15:50:43