This is an old revision of the document!


Send texts to mobile

z

Get your credentials

Goto https://46elks.com/ and register an account and fill the account with some credits. Follow the vendors documentation to obtain a user token and a secret token (password).

Configure the script

Before we can send a text we must set out credentials. They can be set as properties from a task. THis must be done before attempting to send texts. In production environment one may rather store the credentials in a file on the server. The script will look for script/files/SMS_46elks.json The credentials must be stores in JSON format like in the example:

{	
  "user": "u2c8cde7b8f7951bbc18124cf4XXXXXX",
  "password": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

Send a text message from a task

Use a task to send out the message, the phone number must be complete with countrycode like in the example.