Skip to content

SMS Services

SMS Services defines integrations with SMS providers so Emakin can send text messages for scenarios such as 2FA or other notification flows.

Delivery Behavior

The preserved documentation states that Emakin attempts delivery through the configured SMS services in listed order. The first service that returns a non-null result without error is treated as successful.

Settings Reference

Is Enabled

Controls whether the SMS service is active.

Name

Service name used for identification.

SMS Gateway Code

Integration script used to call the SMS provider.

The preserved predefined variables are:

Variable Name Description
$Destination Destination phone number
$Message SMS message content
$Service Reason for sending, such as 2FA
$Code Verification code, when applicable

Example preserved from the existing documentation:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
var client = $Rest.Create('http://mysmsservice');

var request = client.Request('send');

request.AddObject({
    To: $Destination,
    Text: $Message
});

var reply = request.ExecuteJson();

if (!reply.IsSucceed)
    throw new Error('SMS send failed');