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. hi in the above example u created a example for do
View Tutorial          By: akki at 2013-02-22 06:19:14

2. Hi please help me out..

i am gettin

View Tutorial          By: sasivarnan at 2011-04-22 14:15:40

3. Hi Mounika, The reason to the problem is that you
View Tutorial          By: Ramlak at 2008-04-26 20:06:21

4. very useful...!
View Tutorial          By: mahesh at 2012-01-06 09:55:59

5. Its working perfectly for me.Thanks so much for pr
View Tutorial          By: Sunpenn at 2009-10-13 00:53:09

6. Hi Ramlak

First of all thanks for u

View Tutorial          By: Vikas sharma at 2010-05-08 01:09:31

7. Thanks,
But i would like to use an array li

View Tutorial          By: Gustavo at 2011-06-15 21:03:20

8. pls help me how to solve the timeout problem

View Tutorial          By: nisha at 2010-09-20 22:29:17

9. Protip: you could add some inline assembly with th
View Tutorial          By: Robin Degen at 2011-08-16 23:47:04

10. Hi lolz,
In order for this code to work, yo

View Tutorial          By: Vijay at 2008-12-10 19:22:04