Hello Guys,
I am a newbie to kannel and mobile applications.
I need to send a message using kannel and java application with
javacodegeeks kannel api.
Anyone can give me a kannel configuration? I appreciate it very much. Thanks!
Cellphone Brand: Nokia 6600
Here is my Java Code:
package javaapplication3;
import com.javacodegeeks.kannel.api.*;
public class Main {
public static void main(String[] args) {
// TODO code application logic here
SMSManager smsManager = SMSManager.getInstance();
// We can change the prefetch size of the background worker thread
smsManager.setMessagesPrefetchSize(30);
// We can change the send message rate
smsManager.setMessagesSendRate(65);
try {
// Send SMS to a single destination
//smsManager.sendSMS("localhost", "13013", "foo", "bar",
"sender_mobile_number", "receiver_mobile_number", "the_message");
smsManager.sendSMS("localhost","13013", "foo", "bar",
"+639124192051", "+639124192051", "Message send successfully.");
}catch(Exception e){
System.out.println(e.getMessage());
}
}
}