Command Line SMS Client

You can send SMS messages with Ozeki SMS Gateway's Command Line SMS Client (SendSMS.exe) by using command line arguments. It can be easily done by executing SendSMS.exe with important command line arguments like Ozeki SMS Gateway's IP address, login details, recepient address and message content. For more information please follow this simple tutorial.

Step 1 - Enable Ozeki SMS Gateway's built-in SMPP server

Read this setup guide to send SMS messages from command line. Please log into Ozeki SMS Gateway and select 'Edit/Server preferences' from the top menu (Figure 1)

ozeki ng sms gateway command line sms client edit
Figure 1 - Click 'Edit/Server preferences' from the top menu

On the new page please select the 'Client connectivity' tab and tick the 'Enable the built in SMPP server' checkbox. You should keep the default port number of the SMPP server which is 9500. Click 'Ok' to start SMPP server (Figure 2).

command line sms client enable built in SMPP server
Figure 2 - Enable Ozeki SMS Gateway's built-in SMPP server

After starting Ozeki SMS Gateway's SMPP server, you can run SendSMS.exe with the proper arguments.
Below you can see how to do it.

Step 2 - Learn how to use the Command Line Client

Please start the command prompt of your operating system and navigate through Ozeki 10's default directory to find SendSMS.exe. Defaultly it can be found in C:\Program Files\Ozeki\Ozeki10\Client\CommandLine. If you run SendSMS.exe without command line arguments, you should see the following help (Figure 3).

Ozeki SMS Gateway's Command Line Client; Version: v1.2.0

SendSMS.exe  -h hostname:port -u username -p password -r recipient -m message
[optional parameters]

-h  Hostname and port of Ozeki SMS Gateway (Mandator)
-u  Username
-p  Password
-r  Recipient address
-m  Message text
-s  Sender address
-t  Message type
-q  Quiet mode, possible values: on/off
-l  Log low level communication, possible values: on/off
-c  stop condition, possible values: accepted/sent

SendSMS.exe -h -u admin -p abc123 -r "+36201234567" -m "Hello world"
Figure 3 - SendSMS.exe's argument syntax

You can send a single message to multiple recipients. Do not forget to separate the phone numbers with semicolons.

For Example:

"Hello World" can be sent to two phone numbers: "+36201234567" and "+36201122334" (Figure 4) the following way:

SendSMS.exe -h -u admin -p abc123 -r "+36201234567";"+36201122334" -m "Hello world"

command line sms client executing send sms exe
Figure 4 - Executing SendSMS.exe with arguments

If SendSMS.exe was successfully executed with the arguments, you should see it in the command line console (Figure 5).

command line sms client receiving information from ozeki sms gateway
Figure 5 - Receiving information from Ozeki SMS Gateway

Step 3 - Check the Standard User events in Ozeki SMS Gateway

The Command Line Client can only reach Standard Users. The most important Standard User is the admin user. If the 'admin' user has low level event logging. You can follow the event reports as seen on Figure 6.

ozeki ng sms gateway command line sms client events
Figure 6 - 'admin' user events

You should see the SMS message in the admin user's outbox as well (Figure 7).

ozeki ng sms gateway command line sms client outbox
Figure 7 - The admin's outbox

More information