of course, not.
i need open source codes not open users manual.

----- Original Message ----
From: Justin Cater <[email protected]>
To: sirc saira <[email protected]>
Sent: Sun, October 31, 2010 1:07:36 PM
Subject: Re: Need Help: Kannel Configuration for Java Application

Hello sirc saira,

All API operations expect attributes as described in the Kannel User
guide (the relevant javadoc will be of great help). So in order to use
the sendSMS(...) operation you can use the default kannel.conf file
bundled with your kannel distribution provided that you alter the
following sections as shown below :

# SEND-SMS USERS

group = sendsms-user
username = foo
password = bar

If you like, you can change the username and password attributes used
in the sendSMS(...) operation to the ones provided with the default
kannel.conf (tester and foobar) and make no alterations to the
kannel.conf file.

As far as the Java API is concerned you should make no special
modifications to the kannel configuration. All you have to do is to
perform a standard kannel setup according to your environment. If you
setup kannel correctly and be able to use the dictated HTTP URLs (as
shown in the kannel user guide) to send SMS, then you should be able
to use the Java API as well.


BRs

Justin

On Sun, Oct 31, 2010 at 4:24 AM, sirc saira <[email protected]> wrote:
> 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());
>         }
> }
> }
>
>
>
>
>



      

Reply via email to