turbo_sms_notify
No security coverage
πΊπ¦
This module is maintained by Ukrainian developers.Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Drupal 10/11 module that sends SMS and Viber via TurboSMS when a Webform is submitted. Supports Token API, test send, delivery-status webhook, and logging. (β€200 chars)
Features
- Webform Handler: dispatches messages on submission save (postSave).
- Channels: SMS, Viber (transactional / promotional) with optional image and button (caption/action).
- Token API in the message template: supports
[site:*],[date:*],[webform_submission:*],[webform:*],[current-user:*]. - Settings page (
/admin/config/system/turbo-sms) with a βSend testβ action to verify the API. - Flexible targeting: pick the Webform by machine ID (or
*for all), choose the phone field key. - Phone normalization to E.164 (leading
+). - Webhook (
POST /turbosms/webhook) for DLR/delivery statuses; optional signature verification. - Logging to the
turbo_sms_notifychannel (Reports β Recent log messages).
Post-Installation
- Enable and rebuild caches:
drush en turbo_sms_notify -y && drush cr. - Go to Admin β Configuration β System β TurboSMS and fill in:
- API token and Sender (alpha name) from your TurboSMS account;
- Webform machine ID (you can temporarily use
*for diagnostics); - Phone element key (e.g.,
phone); - Message template (Token API supported);
- channel options (SMS/Viber) and, if needed, Webhook secret.
- Open the target Webform β Settings β Handlers β Add handler β TurboSMS notify β Save.
- Use βSend testβ on the settings page to verify authentication and delivery.
Note: the test has nowebform_submissioncontext, so those tokens are cleared; on real submit all tokens are resolved.
Additional Requirements
- Drupal 10/11 (PHP β₯ 8.1).
- Webform module.
- TurboSMS account with an active API token and approved alpha name.
- Token module β optional but recommended for tokenized templates.
- Server must allow outbound HTTP to
api.turbosms.ua.
Recommended modules/libraries
- Token β richer tokens for message templates.
- Admin Toolbar β quicker access to the settings page.
Similar projects
There are generic SMS frameworks/gateways that require manual integration for each provider. This module works with the TurboSMS JSON API out of the box, is tightly integrated with Webform Handler, and supports Viber extras and tokens without extra glue code.