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



Comment Added by : DILIP

Comment Added at : 2012-01-19 14:38:50

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
I have successfully send sms after some trying....first getting NoSuchPortException and After it getting time out in step 6 and after it successful ... all have changes are
1.add new class file as

//DemoSms.java
public class DemoSms
{
public static void main(String args[])
{
SMSClient sc = new SMSClient(1);
sc.sendMessage("+919413102070","Hello");
}

}
//ends here
2.Control panel>Device Maneger>modem and phone >properties

from here i got port name and baud rate and change respectively in following files
SerialParameter.java line 102 replce
public String getPortName() {
return "COM4";
}

line 126 replace
public int getBaudRate() {
return 921600;
}

3. in sender.java
line 23 was rplaced by
private String csca="+919839099999"; // the message center
line 24 was replaced by
private SerialParameters defaultParameters= new SerialParameters ("COM4",921600,0,0,8,1,0);

if u r getting error of port using by another application than restart your computer and make sure that your modem is not connected to internet
THANKS


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. Thank you for the code. Could you please send me c
View Tutorial          By: Ying at 2009-08-17 13:58:16

2. excellent information is provided to you sir try t
View Tutorial          By: Raghav at 2007-12-16 05:03:53

3. simple way friends:
public class palindrome

View Tutorial          By: Manoj at 2013-01-07 02:18:00

4. i want simple program of function used in recursio
View Tutorial          By: manish at 2009-05-19 01:03:19

5. hi guys,

i want some

View Tutorial          By: THANGA at 2012-03-19 15:24:38

6. THNX RAMLAK..
HEY RAMLAK I HAVE A LOT OF DO

View Tutorial          By: Vinod at 2009-01-02 22:04:40

7. wow... and Thanks...
View Tutorial          By: lasitha at 2010-07-24 21:38:50

8. thankyou Mr Ramlak for your help but please can yo
View Tutorial          By: yash at 2008-05-12 16:46:18

9. Hi Maybelline, This is the <a href="http:/
View Tutorial          By: Daniel Malcolm at 2008-08-21 06:57:31

10. Hi,
I wann to insert data into excel file b

View Tutorial          By: PRUTHVIRAJ RATHOD at 2011-05-23 11:42:14