Title: Sendrail SMS for WooCommerce
Author: sendrail
Published: <strong>December 2, 2026</strong>
Last modified: December 2, 2026

---

Search plugins

![](https://ps.w.org/sendrail-sms-for-woocommerce/assets/banner-772x250.png?rev=
3839265)

![](https://ps.w.org/sendrail-sms-for-woocommerce/assets/icon-256x256.png?rev=3839265)

# Sendrail SMS for WooCommerce

 By [sendrail](https://profiles.wordpress.org/sendrail/)

[Download](https://downloads.wordpress.org/plugin/sendrail-sms-for-woocommerce.1.0.4.zip)

 * [Details](https://wordpress.org/plugins/sendrail-sms-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/sendrail-sms-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/sendrail-sms-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/sendrail-sms-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/sendrail-sms-for-woocommerce/)

## Description

Sendrail SMS for WooCommerce sends a text message to your customer when the status
of their order changes, and optionally to you when a new order arrives. Messages
are sent through [Sendrail](https://sendrail.cz), a Czech SMS API with prepaid credit
and no monthly fee for sending.

**Czech mobile numbers only.** Sendrail sends only to Czech mobile numbers (+420).
The plugin is meant for shops whose customers have Czech phone numbers; messages
to other countries are refused by Sendrail and noted on the order.

**What it does**

 * SMS to the customer on any order status, including custom statuses added by other
   plugins. Each status has its own switch and its own text.
 * Variables in the text: order number, first and last name, order total, status(
   in the language of the shop), tracking number and tracking link (when a shipping
   plugin stored them on the order) and the shop name.
 * No half-empty messages: an SMS whose text needs a variable that is empty for 
   the order is not sent, and the order gets a note. Parts of the text in [square
   brackets] are optional and are left out when their variable is empty.
 * A live counter of characters and SMS segments, with a warning when diacritics
   or emoji switch the message to Unicode (70 instead of 160 characters per segment).
   Diacritics can be removed automatically.
 * SMS to the shop manager on a new order (optional, several numbers).
 * Phone numbers are converted to the international format using the billing country
   of the order.
 * Every SMS is written to the order notes with its price and number of segments.
   With a webhook the sending status (handed over to the mobile network, or failed)
   is added too.
 * Optional consent checkbox at checkout (classic and block checkout). Numbers on
   your Sendrail opt-out list are never retried.
 * No duplicates: each status is sent at most once per order, and every request 
   carries an idempotency key.
 * Messages are sent in the background through Action Scheduler, so the checkout
   is not slowed down.
 * Test mode with a Sendrail test key: everything works, nothing is sent or charged.
 * Compatible with High-Performance Order Storage (HPOS) and with the block-based
   cart and checkout.
 * English and Czech.

**What you need**

 * A Sendrail account and an API key. The Sendrail website, dashboard, price list,
   terms and privacy policy are in Czech; only the [API documentation](https://sendrail.cz/docs)
   is in English.
 * Credit. Sending SMS is a paid service charged per message segment from prepaid
   credit in Czech crowns (CZK), without VAT; see the [price list](https://sendrail.cz/cenik)(
   in Czech). Established customers can arrange monthly invoicing instead of prepaid
   credit.
 * To try it: a new account gets 100 free messages after verifying its phone number.
   Until the first top-up they can be sent only to that verified number. A test 
   key sends nothing and costs nothing (see the FAQ).

**Sender and replies**

Messages are sent from Sendrail’s shared Czech mobile numbers through Sendrail’s
own gateways. A custom sender name (alphanumeric sender ID) is not available. A 
sender number reserved for your shop alone can be arranged by e-mail at info@sendrail.
cz.

When a customer replies, the reply goes to Sendrail. With Sendrail’s inbound option(
a monthly fee, see the price list) replies are forwarded to you by e-mail or webhook.
This plugin does not show replies in WooCommerce.

**Planned**

Abandoned cart reminders, bulk campaigns and login with a one-time code are not 
part of this version.

### External services

This plugin connects to the Sendrail API (`https://api.sendrail.cz`) to send SMS.
It is the purpose of the plugin and nothing works without it. Sendrail is operated
by Martin Myška, Czech business ID (IČO) 07705581, Czech Republic.

Data is sent only after you have saved an API key in the settings, in these situations:

 * **When an order reaches a status you switched on** (and for the new order SMS
   to the shop manager): the recipient’s phone number, the text of the message (
   which, depending on your template, can contain the order number, the customer’s
   name, the order total, the tracking number or link and the shop name) and a technical
   idempotency key made of a hash (keyed with a random secret of your installation)
   of the site address and the order key, the order ID and the status. Your API 
   key is sent for authentication.
 * **When you press “Test connection”** in the settings: only the API key, to read
   the credit of your account.
 * **When you press “Register webhook” or “Remove webhook”**: the API key and the
   webhook address of your site, so that Sendrail can report the sending status 
   of messages back to it.
 * **When you delete the plugin**: each saved API key, to read the webhook address
   registered on the key and, when it is the address of this site, to remove it.
   The deletion never waits more than a few seconds for Sendrail and goes on when
   Sendrail cannot be reached.

Sendrail calls the webhook address of your site (`/wp-json/sendrail-sms/v1/webhook`)
with the sending status of messages. Each call is verified with an HMAC-SHA256 signature,
calls older than five minutes are refused and repeated events are ignored.

The plugin does not collect any usage statistics and does not contact any other 
server.

 * [Sendrail terms of service](https://sendrail.cz/podminky) (in Czech)
 * [Sendrail privacy policy](https://sendrail.cz/soukromi) (in Czech)
 * [API documentation](https://sendrail.cz/docs) (in English)

## Screenshots

[⌊Settings: connection to Sendrail with the credit of the account, test mode and
general options.⌉⌊Settings: connection to Sendrail with the credit of the account,
test mode and general options.⌉[

Settings: connection to Sendrail with the credit of the account, test mode and general
options.

[⌊A text for each order status, with variables and a live counter of characters 
and SMS segments.⌉⌊A text for each order status, with variables and a live counter
of characters and SMS segments.⌉[

A text for each order status, with variables and a live counter of characters and
SMS segments.

[⌊An order with the notes of the plugin: the SMS sent, its price and its sending
status.⌉⌊An order with the notes of the plugin: the SMS sent, its price and its 
sending status.⌉[

An order with the notes of the plugin: the SMS sent, its price and its sending status.

[⌊The optional SMS consent checkbox in the block checkout.⌉⌊The optional SMS consent
checkbox in the block checkout.⌉[

The optional SMS consent checkbox in the block checkout.

## Installation

 1. Install and activate the plugin. WooCommerce must be active.
 2. Create an account at [sendrail.cz](https://sendrail.cz) and create an API key in
    the dashboard (the dashboard is in Czech).
 3. Go to WooCommerce  Settings  Sendrail SMS, paste the API key and save.
 4. Press “Test connection” to see your credit.
 5. Tick the order statuses that should send an SMS and adjust the texts.
 6. Optional: press “Register webhook” to get the sending status in the order notes.

## FAQ

### Is the plugin free?

The plugin is free. Sending SMS is charged by Sendrail per message segment from 
prepaid credit; there is no monthly fee.

### What happens when the credit runs out?

Sendrail refuses the messages and they are not sent. Each affected order gets a 
note, and the WordPress administration shows a warning with the number of unsent
messages until a message is accepted again or you hide it. The plugin sends no e-
mail of its own: Sendrail e-mails the account owner when the credit runs low or 
runs out.

### How can I try it without paying or sending anything?

Create a test key (it starts with `sr_test_`) in the Sendrail dashboard, paste it
into “Test API key” and switch on “Test mode”. Messages go through all checks and
appear in the order notes, but nothing is sent and nothing is charged.

### Why is my SMS charged as two or more messages?

One SMS segment holds 160 characters of the basic GSM alphabet. A single character
outside it (for example Czech diacritics or an emoji) switches the message to Unicode
with 70 characters per segment. Keep “Remove diacritics” switched on to avoid that.

### Which phone number is used?

The billing phone of the order (the shipping phone when there is none). A number
without an international prefix gets the prefix of the billing country.

### Can one order get the same SMS twice?

No. Each status is sent at most once per order, even when the status is switched
back and forth, and when the same request reaches Sendrail again (for example after
a timeout), Sendrail recognizes its idempotency key and returns the original message
instead of sending it again.

The idempotency key includes a random secret created by the plugin on your site,
the site address and the order key of WooCommerce, so two shops whose order numbers
repeat (a staging copy, a reinstalled or restored shop, test shops) do not share
keys. A copy made with the same database and the same address shares the keys of
the orders it copied: when the copy sends an SMS the original already sent, Sendrail
returns the original message and nothing new is sent.

### What does “its idempotency key was already used” in an order note mean?

The plugin checks every answer of Sendrail. When Sendrail returns a message to another
phone number than the one asked for (the key was already used for another message,
typically by an older version of the plugin in another shop with the same address),
the order gets a note saying so, and the plugin tries once more with a new key. 
When that answer does not fit either, or when Sendrail returns a new message to 
another number, the SMS is not tried again and the order note asks you to check 
the message in the Sendrail dashboard.

When Sendrail returns a message to the same number that is older than the first 
attempt of this SMS (by more than five minutes, to allow for clock differences),
the plugin does not send it again, because the customer already got a message under
this key, and writes a note “not sent again” with the ID and time of that message.
None of these cases is reported as a sent SMS.

Since November 2026 Sendrail refuses a key that was already used for a different
message (another number, text or message type) instead of returning that message.
When the other message went to another number, the plugin notes it and tries once
more with a new key, as above. When it went to the same number with another text,
an earlier attempt of this SMS was most likely accepted before the text changed (
for example the answer of Sendrail was lost, and a tracking link was added or the
template edited before the automatic retry): the plugin writes a note “not sent 
again” and records the SMS as sent, so that the customer does not get it twice. 
Its text is in the Sendrail dashboard.

### Where does the tracking number come from?

From the order meta written by shipping plugins: `_wc_shipment_tracking_items`, `
_tracking_number`, `_tracking_url` and a few similar keys. Developers can supply
their own value with the `sendrail_sms_tracking_data` filter.

### What if the tracking number (or another variable) is empty?

The SMS is not sent and the order gets a note saying which variable was empty, so
that no customer receives a text ending with “Tracking number:”. Nothing is marked
as sent: when the status is set again after the shipping plugin stored the number,
the SMS goes out.

If the SMS should go out even without the value, put the part with the variable 
in square brackets, for example `Your order {order_number} has been shipped.[ Tracking
number: {tracking_number}.]`. A part in brackets is sent only when all its variables
have a value, otherwise it is left out; the brackets themselves are never sent. 
Square brackets without a variable inside are sent as they are.

### What is removed when I delete the plugin?

Removed: all settings of the plugin, its records of recent webhook events, and its
Action Scheduler history (queued, completed, failed and cancelled sending jobs, 
their log entries and the `sendrail-sms` group). When the webhook registered on 
a saved API key points to this site, it is removed at Sendrail too (a key shared
with another site keeps its webhook).

Kept: the order notes the plugin wrote, and these order meta keys:

 * `_sendrail_sms_log`: the messages sent for the order, each with its Sendrail 
   message ID, sending status, phone number and time.
 * `_sendrail_sms_message_id`: the Sendrail message IDs of the order.
 * `_sendrail_sms_sending`: the idempotency key and start time of a message whose
   sending is not finished yet (normally empty).
 * `_sendrail_sms_consent`: the customer ticked the SMS consent checkbox in the 
   classic checkout.
 * `_wc_other/sendrail-sms/consent`: the same checkbox in the block checkout (stored
   by WooCommerce).

They are part of the order history and the record of each customer’s consent, which
the shop may need to prove, so the plugin does not delete them. To remove them anyway,
back up the database and run with WP-CLI (replace `wp_` with your table prefix; 
skip the first command when the table `wp_wc_orders_meta` does not exist, that is
when HPOS has never been switched on):

    ```
    `
    ```

wp db query “DELETE FROM wp_wc_orders_meta WHERE meta_key IN (‘_sendrail_sms_log’,‘
_sendrail_sms_message_id’, ‘_sendrail_sms_sending’, ‘_sendrail_sms_consent’, ‘_wc_other/
sendrail-sms/consent’)”
 wp db query “DELETE FROM wp_postmeta WHERE meta_key IN (‘
_sendrail_sms_log’, ‘_sendrail_sms_message_id’, ‘_sendrail_sms_sending’, ‘_sendrail_sms_consent’,‘
_wc_other/sendrail-sms/consent’)” wp cache flush `

The two DELETE statements work in any SQL client as well. Order notes are ordinary
WooCommerce order notes and stay.

Deactivating the plugin removes nothing, so that it works again as before when it
is activated again; Sendrail stops retrying calls to an inactive site after a few
hours.

### “Register webhook” says the key cannot manage its webhook. What now?

Either tick the option “Povolit správu webhooku přes API” (Allow webhook management
through the API) at the API key in the Sendrail dashboard and press the button again,
or open the key in the dashboard, paste the webhook URL shown in the plugin settings,
then copy the signing secret from the dashboard into the “Signing secret” field 
and save.

### Does it work with HPOS and the block checkout?

Yes, both are supported and declared.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Sendrail SMS for WooCommerce” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ sendrail ](https://profiles.wordpress.org/sendrail/)

[Translate “Sendrail SMS for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/sendrail-sms-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sendrail-sms-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/sendrail-sms-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/sendrail-sms-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/sendrail-sms-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.4

 * Sendrail now refuses an idempotency key that was already used for a different
   message (HTTP 409 `idempotency_key_reused`). When the key was used for another
   number, the plugin notes it and tries once more with a new key. When it was used
   for the same number with another text (an earlier attempt accepted before a tracking
   link was added or the template edited), the SMS is recorded as sent earlier with
   an order note and never sent twice.
 * The error has its own translated text.

#### 1.0.3

 * Fix: two shops with the same address whose order IDs repeat (a staging copy, 
   a reinstalled or restored shop, test shops) used the same idempotency keys; Sendrail
   then returned the other shop’s message, nothing was sent and the order note named
   a message that had gone to another number. The key now includes a random secret
   of the installation (removed when the plugin is deleted), the site address and
   the order key.
 * Fix: the plugin checks the answer of Sendrail. A message to another number, or
   a repeat of a message older than this send, is never noted as sent; after a reused
   key the SMS is tried once more with a new key.
 * Sending jobs queued by 1.0.2 at the time of the update keep their old key, so
   nothing is sent twice.

#### 1.0.2

 * Uninstall also removes the plugin’s scheduled-action history; readme clarifications.
 * The readme says what stays after deleting the plugin (order meta with the message
   log and the customer’s consent) and how to remove it.
 * The settings say that Sendrail sends only to Czech mobile numbers (+420); the
   webhook hint translates the Czech name of the dashboard option.

#### 1.0.1

 * Fix: “Test connection” showed the credit with a stray ” ” in some languages (
   for example Czech).
 * Fix: order notes show the price in the format of the site language with the currency
   symbol (“0,50 Kč” in Czech).
 * Fix: {status} in the counter preview and in the messages uses the status name
   in the language of the shop, also when the queue runs in the request of a user
   with another language.
 * Fix: the errors returned by Sendrail (credit, invalid number, country not allowed,
   limits, opt-out, invalid key and more) are shown in the language of the site;
   unknown errors keep the text of the API.
 * New: a message whose text needs an empty variable (typically {tracking_number})
   is not sent and the order gets a note; parts of the text in [square brackets]
   are optional. The default text for “Completed” and the shop manager text use 
   optional parts.
 * Fix: the template text boxes in the settings use the full width of the column,
   on phones too.
 * Fix: deleting the plugin removes the records of webhook events, the queued messages,
   and the webhook of this site at Sendrail (best effort, at most a few seconds).

#### 1.0.0

 * First release.

## Meta

 *  Version **1.0.4**
 *  Last updated **17 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.8 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [Czech](https://wordpress.org/plugins/tags/czech/)[order notifications](https://wordpress.org/plugins/tags/order-notifications/)
   [sms](https://wordpress.org/plugins/tags/sms/)[sms notifications](https://wordpress.org/plugins/tags/sms-notifications/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/sendrail-sms-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/sendrail-sms-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sendrail-sms-for-woocommerce/reviews/)

## Contributors

 *   [ sendrail ](https://profiles.wordpress.org/sendrail/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sendrail-sms-for-woocommerce/)