Sending a message using the 'Outgoing' folder
If you have set up the Windows
SMS Server to run as a service (for more information click
here) you can send
SMS messages by putting plain text
.SMS files into your Outgoing folder.
The Outgoing folder can be set using the Configuration panel of the Windows
SMS Server application and points to
c:\winsmsserver\outgoing by default.
You can make
.SMS files using any text editor or produce them from your own software.
There should be one
.SMS file for each message you want to send, with each line of the file specifying a different parameter.
.SMS file has format
- Destination (international numeric)
- Originator (16 digits numeric or 11 digits alphanumeric)
- Source TON
- Data coding scheme
- Delivery receipt (1 = on, 2 = off)
- User reference
- Validity period (in minutes, maximum 10080)
- Delay until (Unix time timestamp, relative to local time)
- Local time (Unix time timestamp)
- Message text
(
Please note the numbers are to illustrate line number and should not be included in the file).
For more information on these options please consult the
Windows SMS Server User Guide.
An example
.SMS file might look like:
447897000000
AcmeSMS
5
1
1
myReference
My message!
When you have constructed your
.SMS file it should be given a unique name.
.SMS files should be named after their user reference. If you do not specify a user reference for the
.SMS file then the file should just be given a unique name, perhaps using a date/time element, for example:
myReference0001.sms
200710121445.sms
Finished
.SMS files should be placed in the Outgoing directory and the Windows
SMS Server service will send them out when it next polls the directory.