Linux 软件免费装
Banner图

Sendrail SMS for WooCommerce

开发者 sendrail
更新时间 2026年12月3日 20:49
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce sms czech sms notifications order notifications

下载

1.0.4 1.0.5

详情介绍:

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, a Czech SMS API with prepaid credit and no monthly fee for sending. Mobile numbers in 41 European countries. Sendrail sends to the Czech Republic, Slovakia and other countries in Europe, 41 in all; the price list (in Czech) lists them. Each API key also has its own list of allowed countries, which you can change in the key settings in the Sendrail dashboard. A message to a country Sendrail does not send to, or that the key does not allow, is refused by Sendrail and noted on the order. What it does What you need Sender and replies Messages are sent from Sendrail's shared mobile numbers (Czech; abroad they may be Slovak) 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.

安装:

  1. Install and activate the plugin. WooCommerce must be active.
  2. Create an account at 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.

屏幕截图:

  • 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.
  • The optional SMS consent checkbox in the block checkout.

升级注意事项:

1.0.5 Texts no longer say that Sendrail sends only to Czech numbers (it sends to 41 European countries); Slovak and Polish numbers typed without "+" are recognized. 1.0.4 Handles Sendrail's new answer to a reused idempotency key: an SMS is never sent twice and never noted as sent when it was not. Recommended for all shops. 1.0.3 Fixes order notes claiming an SMS was sent when Sendrail returned an older message of another shop with the same address and order number. Recommended for all shops, especially those with staging copies. 1.0.2 Deleting the plugin now also removes its Action Scheduler history. No change to sending. 1.0.1 Fixes the credit display, price format and translated statuses and errors; messages with an empty tracking number are no longer sent half-empty. Texts that use {tracking_number} or {tracking_url} outside [square brackets] are now held back when the value is empty. 1.0.0 First release.

常见问题:

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.

更新日志:

1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0