Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SMSing

 
Avalanche snow
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would like to make a java programme to SMS using my provider which is singtel in singaprore to another friend of my.
does anybody know and give me some ideal of how would i be doing?
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sms.setSubscriberID(id);
sms.setSubscriberPassword(password);
// Message Settings
sms.setMsgPin(phoneNo);
sms.setMsgFrom(fromName);
sms.setMsgText(messageText);
// Send Message
sms.msgSend();
// Check For Errors
if(sms.isSuccess())
{
System.out.println("Message was sent!");
}
else
{
System.out.println("Message was not sent!");
System.out.println("Error Code: " + sms.getErrorCode());
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic