Wednesday, July 8, 2009

Send free SMS using JAVA / Java API to send free SMS

Hello Friends,
I am a JAVA fan, though I have written more than 18000 lines of code in java but I am still in learning phase.
Here, I want to discuss about an API that I created recently. Using this API you can easily send free SMS using Java programming language.

I am writing a simple JAVA program that I made using NetBeans IDE, using this you can easily understand how to use this API.

package test;

/**
*
* @author Siddharth
*/
import siddharthanand.SiddharthAnandSms;

public class Sms {



/**
* @param args the command line arguments
*/

public static void main(String[] args) {

System.out.println("hi");

SiddharthAnandSms.smsMessage="Enter your message here";
SiddharthAnandSms.smsUserName="username of way2sms account";
SiddharthAnandSms.smsPassword="password of way2sms account";
SiddharthAnandSms.smsUserNameForAuthentication="username for your proxy server";
SiddharthAnandSms.smsPasswordForAuthentication="password for your proxy server";
SiddharthAnandSms.smsProxyPresent="true";
SiddharthAnandSms.smsProxyServer=" e.g. 192.16.5.254";
SiddharthAnandSms.smsProxyPort="8080";
SiddharthAnandSms.smsReceiverMobileNumber="Receiver's mobile number";

SiddharthAnandSms sms = new SiddharthAnandSms();
System.out.println("hi");


}

}


Explanation:

"Enter your message here": You can enter your message here. If you want spaces then please add + sign for that. There will be no requirement of adding "+" in the upcoming new version.

"username of way2sms account": Here you have to write your username of way2sms account.

"password of way2sms account": Specify the password here.

"username for your proxy server": If you are behind the gateway for accessing the internet and that gateway requires authenticaton then you specify here the username for that.

"password for your proxy server": Specify the password for the gateway.

"true": Specify true if you are behind the proxy server else write false.

You can freely download the SMS API from the download section of my website:
www.siddharthindia.co.nr

2 comments:

  1. tried..prog running fine..bt im not getting ny messages....

    ReplyDelete
  2. This is really interesting, You're a very skilled blogger.

    I have joined your rss feed and look forward to seeking more of your great post.
    Also, I've shared your web site in my social networks!

    My web page :: free sms to india

    ReplyDelete