Smarty

  1. Home
  2. Docs
  3. Smarty
  4. Integration of additional services
  5. Integration with SMS gateways

Integration with SMS gateways

Smarty supports integration with various services for sending SMS messages to users. SMS is sent by the system when using widgets integrated with the site (for example, during subscriber registration) or to send mass messages to customers. SMS gateway integration settings are set by variables in the configuration file /etc/microimpuls/smarty/smarty.py:

  • SMS_BACKEND - The SMS gateway used to send messages. The module that implements interaction with the gateway should be located in the Smarty directory in the folder sms/backends/.
  • SMS_ATTEMPTS - The number of maximum attempts to send a message after which it is considered unsuccessful.

As well as additional parameters, which may differ depending on the configurable SMS gateway, they are described in more detail below.

After changing the configuration file, reboot uwsgi to take effect.
Logs about operations related to sending SMS messages are stored in a file /var/log/microimpuls/smarty/smarty_sms.log

Attention! Sending SMS messages through the screen “Subscribers” – “Messages and commands” depends on the settings of the account notifications.

Notification settings panel from the account editing page

SMS-gateway smsc.ru

Sending SMS with code and password during registrationYes
Sending an SMS with a code to confirm the number during registrationYes
Sending a confirmation call during registrationYes
Sending a confirmation code in the incoming call numberYes
Sending one-time passwords during authorizationYes
Massive SMS mailingYes

Set up integration

To start using the service for sending SMS messages smsc.ru, you must specify the following parameters in the configuration file:

  • SMS_BACKEND = 'sms.backends.smscru.SMSCBackend'
  • SMSC_LOGIN - Username in smsc.ru
  • SMSC_PASSWORD – Password in smsc.ru
  • SMSC_SENDER – The name of the sender that will be displayed in SMS sent through the service smsc.ru

SMS gateway mobipace.com

Sending SMS with code and password during registrationYes
Sending an SMS with a code to confirm the number during registrationNo
Sending a confirmation call during registrationNo
Sending one-time passwords during authorizationNo
Massive SMS mailingYes

Set up integration

To start using the service for sending SMS messages mobipace.com, you must specify the following parameters in the configuration file:

  • SMS_BACKEND = 'sms.backends.mobipace.MobipaceBackend'
  • MOBIPACE_LOGIN - Username in mobipace
  • MOBIPACE_PASSWORD - Password in mobipace
  • MOBIPACE_SENDER - The sender name that will be displayed in SMS sent via mobipace

SMS gateway pulseem.co.il

Sending SMS with code and password during registrationYes
Sending an SMS with a code to confirm the number during registrationYes
Sending a confirmation call during registrationNo
Sending one-time passwords during authorizationNo
Massive SMS mailingYes

Set up integration

To start using the service for sending SMS messages pulseem.co.il, you must specify the following parameters in the configuration file:

  • SMS_BACKEND = 'sms.backends.pulseem.PulseemBackend'
  • PULSEEM_APIKEY - PULSEEM API Key
  • PULSEEM_SENDER_NAME - The sender name that will be displayed in SMS sent through the pulseem service

SMS gateway sms-assistent.by

Sending SMS with code and password during registrationYes
Sending an SMS with a code to confirm the number during registrationYes
Sending a confirmation call during registrationNo
Sending one-time passwords during authorizationNo
Massive SMS mailingYes

Set up integration

To start using the service for sending SMS messages sms-assistent.by, you must specify the following parameters in the configuration file:

  • SMS_BACKEND = 'sms.backends.sms-assistent.SmsAssistentBackend'
  • SMS_ASSIST_USERNAME - Username in SMS-assistent
  • SMS_ASSIST_PASSWORD - Password in SMS-assistent
  • SMS_ASISST_SENDER_NAME - The name of the sender that will be displayed in the SMS sent through the sms-assistent service (must match the one that is registered in the account)

Twilio SMS gateway

Sending SMS with code and password during registrationYes
Sending an SMS with a code to confirm the number during registrationYes
Sending a confirmation call during registrationNo
Sending a confirmation code in the incoming call numberNo
Sending one-time passwords during authorizationNo
Massive SMS mailingYes

Set up integration

To start using the service for sending SMS messages Twilio, you must specify the following parameters in the configuration file:

  • SMS_BACKEND = 'sms.backends.twilio_backend.TwilioSmsBackend'
  • TWILIO_ACCOUNT_SID - account id from Twilio settings
  • TWILIO_AUTH_TOKEN is an access token that can be obtained in the personal account of Twilio in the account->api keys and tokens section
  • TWILIO_PHONE_FROM is the phone from which the message is sent. Must be added to Twilio

Mobizon SMS Gateway

Sending SMS with code and password during registrationYes
Sending an SMS with a code to confirm the number during registrationYes
Sending a confirmation call during registrationNo
Sending one-time passwords during authorizationNo
Massive SMS mailingYes

Set up integration

To start using the service for sending SMS messages Mobizon, you must specify the following parameters in the configuration file:

  • SMS_BACKEND = 'sms.backends.mobizon.MobizonBackend'
  • MOBIZON_API_KEY - Mobizon API Key
  • MOBIZON_SENDER_NAME is an alpha name on Mobizon. It is not necessary, if the user does not have the name agreed with the service, to leave empty

Sending SMS messages in different Smarty interfaces

Not all SMS gateway features are available in all Smarty design templates. Below is a table comparing templates and features:

FuturisticImpulsesInfinitly
Sending SMS with code and password during registrationYesYesYes
Sending an SMS with a code to confirm the number during registrationYesNoYes
Sending a confirmation call during registrationNoNoNo
Sending one-time passwords during authorizationNoNoNo