Drupal is a registered trademark of Dries Buytaert

πŸ‡ΊπŸ‡¦

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_notify channel (Reports β†’ Recent log messages).

Post-Installation

  1. Enable and rebuild caches: drush en turbo_sms_notify -y && drush cr.
  2. 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.
  3. Open the target Webform β†’ Settings β†’ Handlers β†’ Add handler β†’ TurboSMS notify β†’ Save.
  4. Use β€œSend test” on the settings page to verify authentication and delivery.
    Note: the test has no webform_submission context, 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.
  • 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.

Activity

Total releases
3
First release
Aug 2025
Latest release
6 months ago
Release cadence
0 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
1.0.2 Stable Aug 14, 2025
1.0.1 Stable Aug 14, 2025
1.0.x-dev Dev Aug 14, 2025