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



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. very well to understand
View Tutorial          By: Siva Krishna N at 2007-02-16 23:06:07

2. Excellent !...That explains my long-term question
View Tutorial          By: Vineeth at 2012-02-01 03:50:21

3. This program is faulty .

Check for

View Tutorial          By: Shrikant Kale at 2014-09-09 07:31:04

4. Thanx.. it helps me a lot, now.. i have 1 more que
View Tutorial          By: GuzZpaWn at 2012-01-15 17:19:29

5. could somebody please tell a case where memcpy() w
View Tutorial          By: freak at 2011-02-09 20:29:26

6. please give very easy program....this program is d
View Tutorial          By: rajesh at 2010-01-24 08:08:38

7. The above code given for sending SMS through your
View Tutorial          By: ROHAN at 2008-10-17 00:55:46

8. how to implement stack with using vector class
View Tutorial          By: anamika at 2015-08-25 18:58:29

9. PLEASE I WANT A CODE TO BE PUT BEHIND A BUTTON SO
View Tutorial          By: KALUSHA at 2012-07-02 12:32:56

10. Daniel Jonsson, you should be thankful to this art
View Tutorial          By: dole at 2011-11-12 06:44:42