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. The last output is not :John Doe's current balance
View Tutorial          By: Santosh at 2010-06-01 22:54:21

2. Hi I properly placed the Comm api settings,i have
View Tutorial          By: Muthumani at 2010-04-19 05:24:17

3. I am looking for a J2ME programmer that can create
View Tutorial          By: Gary Wallis at 2007-10-14 15:35:00

4. Nice article, Thank you
View Tutorial          By: kumar kasimala at 2010-04-26 21:09:25

5. teacher namin na si Engr. Lumasag nakakasira ng ba
View Tutorial          By: rossy at 2011-10-06 06:12:53

6. would like to have copy of clock
View Tutorial          By: jim johnson at 2008-04-10 17:30:06

7. Very Good Example Dude!

Note for re

View Tutorial          By: Erwin at 2009-12-06 20:20:24

8. Can you Please send me the code for movable clock
View Tutorial          By: Rajagopal at 2008-09-29 23:10:57

9. not satisfied friend. for Socket class it asks to
View Tutorial          By: Gaurav at 2009-01-28 07:34:42

10. thanks
for your clear and precise explanati

View Tutorial          By: Tausiq at 2009-09-05 07:27:49