My code is like below.I have downloaded jar file of way2sms.
import com.way2sms.SMS;
class MsgSender {
public static void main(String[] args) {
String Username="xxxxxxxxxx";
String Password="xxxxxxxxxx";
String Number="xxxxxxxxxx";
String Message="Hi";
String Proxy="";
SMS smsClient=new SMS();
smsClient.send( Username, Password, Number, Message,Proxy);
}
}
Below one is the link for jar
mediafire.com/download/ztwzzwmfmmz/way2sms-api-4.0.0.jar
I have given my credentials,But after running program it is showing as,
Jul 06, 2015 9:53:06 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Logging in ...
null
Login Failed..`.
Probably you need admin rights to Access System or root node...
User contributions licensed under CC BY-SA 3.0