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. A good and useful tutorial for beginners.
t

View Tutorial          By: Hayk at 2010-01-12 10:55:15

2. thanx very much...
View Tutorial          By: Rajesh at 2015-10-09 08:57:36

3. Wow thx, this is really easy for me to understand
View Tutorial          By: brian at 2010-03-22 05:15:47

4. very nice and i need the code for this.. can u sen
View Tutorial          By: bala at 2008-05-14 04:51:07

5. plz send me some interview based simple java progr
View Tutorial          By: Abilesh at 2013-06-23 06:43:03

6. Hi Shruti, If you have better samples then feel fr
View Tutorial          By: jagan at 2010-03-03 19:42:46

7. good explanation ,it is very very understandable
View Tutorial          By: chaitanya at 2011-10-27 16:21:55

8. This explanation is simple and very useful.
View Tutorial          By: kiran at 2015-02-22 20:47:13

9. can any body help me,i need to send a sms from sim
View Tutorial          By: vinayaka DJ at 2011-11-14 12:44:01

10. yesh this is very help full for every body.
View Tutorial          By: venkat at 2010-06-29 12:18:57