5.25.2 SET

The SET command is optional and is used primarily to override the values defined in the SMSService.properties file.

To set multiple keywords inside your application you may either use the SET command multiple times or use one SET command with multiple keywords defined in it.

SET SMTP TRANSPORT

Syntax

Command

Keyword

Value

Developer notes

SET

TRANSPORT

*SMTP

Optional. Transport protocol.

SERVER

value

Optional. SMTP server.

PORT

value

Optional. SMTP server port.
The default value is 25.

MAILDOMAIN

value

Optional. The mail domain as issued by the SMTP HELO command. This value tells the SMTP server that this is your mail domain.

MOBILEDOMAIN

value

Optional. The mail domain to which you will send the email with the SMS details.
Normally the mobile phone number you are sending the SMS to will prefix this value.
For example, if you are sending the SMS to a number 12345678 and the mobile domain is streetdata.com.au, then the full email address that the message will be sent to is 12345678@streetdata.com.au.

FROM

value

Optional. The FROM address of the email that you want emails responses from the SMS gateway service provider routed back to. Such responses might include SMS status information (such a failed SMS).
This would normally be one of your company's email addresses - perhaps one that is dedicated to receiving such responses.
It should be a valid email address. Many providers will only accept values that are already registered with them.

CHARSET

value

Optional. The character set of the Content-Type property.
Default is iso-8859-1.

ENCODING

value

Optional. The encoding of the SMTP protocol and message.
Default is ISO8859_1.

SUBJECT

value

Optional. The subject of the email.
Typically, this would contain your user account and account password (in the format user+password) for the SMS gateway that you are using. Confirm with your provider as they may have their own format.

 

Example

SET SUBJECT(user+password)

 

SET HTTP TRANSPORT

Syntax:

Command

Keyword

Value

Developer notes

SET

TRANSPORT

*HTTP

Optional. Transport protocol.

PROVIDER

*KAPOW

Optional. Kapow.
https://www.kapow.co.uk

*VIANETT

ViaNett.
http://www.vianett.com

*BULKER

Bulker.
https://www.bulker.gr

*STREETDATA

Street Data
https://streetdata.com.au

*TEXTMARKETER

Text Marketer.
https://www.textmarketer.co.uk

*INTELLISOFTWARE

Intelli Software.
https://www.intellisoftware.co.uk

HOST

host:port

Optional. HTTP host.

SENDER

value

Optional. This identifies the sender of the SMS message. Some providers do not support this feature.

SECURE

*YES

Optional. Secure connection.

*NO

Default.

URI

value

Optional. HTTP resource.

ACCOUNT_USER

value

Optional. Your account name supplied to you by your SMS gateway service provider.

ACCOUNT_PASSWORD

value

Optional. This is the password for your account.

 

Example

SET ACCOUNT_USER(user) ACCOUNT_PASSWORD(password)