Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.
Comment Added by : Ajay
Comment Added at : 2010-09-04 03:01:24
Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
To RUN this code, follow below steps
1 Add main() method in code.
public static void main(String args[]) {
SMSClient a = new SMSClient(1); //
// arg 1 - send number
// arg 2 - Message
a.sendMessage("+91111100", "11111");
}
2 - Download [from net] javax.Comm jar (javax.comm.NoSuchPortException )
comm.jar
win32com.dll
javax.comm.properties
Make sure all 3 file should be in same folder
3 - Configure Message center
Message Center number is available on mobile, check following options
Goto Messaging > Options > Settings > Text message > Service centre
Update the number on class.Sender.csca [variable]
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. I successfully connect to mysql server using:
View Tutorial By: Arsalan at 2012-07-09 16:38:49
2. Can anybody tell.... what if condition is doing in
View Tutorial By: Randhir Sambyal at 2013-08-26 06:37:25
3. Nice example..i m working on android and i want to
View Tutorial By: Pranav at 2012-04-25 07:00:48
4. Microsoft VB.net 2008 not showing Crystal Report V
View Tutorial By: Ali at 2011-11-30 03:21:00
5. how to solve this problem
javax.com
View Tutorial By: rajani at 2009-07-18 05:44:55
6. ok good.But what about plug-in's Information.
View Tutorial By: Ramarao at 2010-01-31 07:32:02
7. Very Very nice explanation...
View Tutorial By: anil at 2010-11-04 00:22:58
8. Hi,
I alos faced the same problem o
View Tutorial By: prasanna kumar v at 2010-05-15 02:55:59
9. werst program out put nt comming
View Tutorial By: anu at 2012-08-02 13:09:00
10. i have an exception unknown host.
please te
View Tutorial By: saddam hussain at 2011-03-22 10:46:48