5.26.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. |
|
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. |
|
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). |
|
CHARSET |
value |
Optional. The character set of the Content-Type property. |
|
ENCODING |
value |
Optional. The encoding of the SMTP protocol and message. |
|
SUBJECT |
value |
Optional. The subject of the email. |
Example
SET SUBJECT(user+password)
SET HTTP TRANSPORT
Syntax:
Command |
Keyword |
Value |
Developer notes |
SET |
TRANSPORT |
*HTTP |
Optional. Transport protocol. |
PROVIDER |
*KAPOW |
Optional. Kapow. |
|
*VIANETT |
ViaNett. |
||
*BULKER |
Bulker. |
||
*STREETDATA |
Street Data |
||
*TEXTMARKETER |
Text Marketer. |
||
*INTELLISOFTWARE |
Intelli Software. |
||
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)