📋

SMSTunnel for WPForms

WPForms SMS Notifications

Free on WordPress.org • Requires WPForms Lite • SMSTunnel Core Required

Description

SMSTunnel for WPForms adds SMS notification capabilities to WPForms - the beginner-friendly WordPress form builder. Get a text when a form is submitted and send confirmations to your users.

It works with WPForms Lite, the free WPForms plugin: turn the texts on for any form you build. The texts are sent by your own Android phone, from your own number.

Features

  • Any Form - Set up texts form by form, for every form you build in WPForms
  • Smart Tags Support - Put form answers and site details in your SMS
  • Auto-Reply - Send a confirmation text to the person who filled in the form
  • Multiple Recipients - Several numbers, separated by commas; each gets its own text, and a field's smart tag like {field_id="3"} works too
  • Easy Setup - Configure SMS directly in the WPForms builder
  • Works with Lite - Made for WPForms Lite, the free plugin: no WPForms Pro needed
  • International Numbers - Numbers must start with + and the country code (spaces are fine). One without + is read as if it began with a country code, and local numbers starting with 0 and premium-rate numbers are skipped, so ask for international format in your form

Using Smart Tags

Smart tags let you include form data in your SMS:

{field_id="1"} - Field by ID

{all_fields} - All submitted answers

{site_name} - Website name

{site_url} - Website URL

{admin_email} - Admin email

{date format="m/d/Y"} - Submission date

{user_ip} - Submitter IP address

Some WPForms smart tags, like {form_name} and {page_title}, are not replaced: use the ones above.

Example Messages

Admin Notification:

"New {site_name} form submission from {field_id="1"}. View in WordPress admin."

User Confirmation:

"Thanks for your submission! We received your message and will respond within 24h."

Installation

  1. Install the SMSTunnel core plugin and link your phone: SMSTunnel → Quick Setup, then scan the QR code with the SMSTunnel app (Connections → Link with QR code) and approve on your phone
  2. Ensure WPForms Lite is installed and active
  3. In WordPress, go to Plugins → Add Plugin and search for SMSTunnel for WPForms
  4. Click Install Now, then Activate
  5. Edit any WPForms form → Settings → SMS

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher
  • WPForms Lite (the free WPForms plugin), installed and active
  • SMSTunnel core plugin, linked to your phone
  • The SMSTunnel app on your Android phone, from Google Play

Screenshots

Changelog

The current version and its full changelog are on the plugin's WordPress.org page.

Build it with an AI assistant

Copy this prompt into Claude, ChatGPT, Cursor or Copilot and replace the part in [brackets]. Don't paste your API key into the chat: the prompt doesn't need it.

Help me set up SMSTunnel texts for my WPForms forms in WordPress.

About SMSTunnel (https://smstunnel.io): my own apps and tools hand text messages (SMS) to my SMSTunnel account, and my own Android phone sends them from my own number, on my own SIM and plan. The phone runs the SMSTunnel app from Google Play (https://play.google.com/store/apps/details?id=io.smstunnel.app), signed in to my account.

What I want: [describe what should send a text, to whom, and when]

How it works:
- Plugins: SMSTunnel (core), "SMSTunnel for WPForms" (https://wordpress.org/plugins/smstunnel-for-wpforms/) and WPForms Lite, the free WPForms plugin (the add-on lists wpforms-lite under "Requires Plugins").
- The SMSTunnel core plugin (https://wordpress.org/plugins/smstunnel/) links the site to my phone: SMSTunnel → Quick Setup, then I scan the QR code with the SMSTunnel app (Connections → Link with QR code) and approve on the phone. An API key works too: SMSTunnel → Settings → "Connect with API Key".
- Settings: open the form in the WPForms builder → Settings → "SMS" (panel "SMS Notifications"): "Enable SMS notification when form is submitted", "Recipient Phone Number(s)" (several, separated by commas; smart tags allowed), "Message Body" (default: New form submission from {field_id="1"}, then {all_fields}). "SMS (2) - Autoresponder": "Enable SMS (2) Autoresponder", "Recipient Phone Number" (the phone field's smart tag, like {field_id="3"}), "Confirmation Message".
- Smart tags: {field_id="X"}, {all_fields}, {site_name}, {site_url}, {admin_email}, {user_ip}, {date format="..."}, {date}, {entry_id} (0 with WPForms Lite, which doesn't store entries). Other smart tags are not replaced.
- Numbers must start with + and the country code (spaces are fine). A local number with a leading 0 is skipped, one without + is read as if it began with a country code, and premium-rate numbers are always skipped. Each number gets its own text; texts are cut at 1600 characters. If my phone is offline, the texts wait and go out when it is back.
- For custom code, the core plugin has smstunnel_send_sms($phone, $message, $args = array()), with $args 'is_2fa' (sends through the sign-in code endpoint), 'order_id' and 'source'; it returns an array with 'success' and 'messageId', or 'error'. smstunnel_sanitize_recipient($phone) returns the number in international format, or '' when it is invalid or premium-rate.

Rules for your answer:
- Do not ask for my SMSTunnel password or API key and do not put a real key in your answer; I will not paste it in this chat.
- Phone numbers must be in international format (+ and the country code).
- Help me test it with my own number first.
- Only send texts people expect from me. No unsolicited texts.