=== SMSTunnel SMS for Contact Form 7 === Contributors: narcisbodea, nicunarcisbodea Tags: contact form 7, cf7, sms, notifications, text messages Requires at least: 5.0 Tested up to: 7.1 Requires PHP: 7.4 Stable tag: 1.2.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Send SMS notifications when a Contact Form 7 form is submitted, to you, your team or the sender, from your own Android phone and SIM. == Description == **[Get the SMSTunnel app on Google Play](https://play.google.com/store/apps/details?id=io.smstunnel.app)** **SMSTunnel for CF7** adds SMS notifications to Contact Form 7. When a visitor submits a form, you can automatically text yourself, your team, or the person who submitted it. The texts are sent from your own Android phone and number. You link the phone to your site by QR code in the main SMSTunnel plugin, and you can remove that connection anytime from the SMSTunnel app. **End-to-end encryption.** Turn it on in the SMSTunnel plugin and these texts are encrypted for your phone before they leave WordPress, so only your phone can read the words. After your phone sends it, a text travels over the mobile network like any other SMS. This is a third-party integration built by SMSTunnel.io. It is not affiliated with, endorsed by, or sponsored by Contact Form 7 or its author. = Requires SMSTunnel Plugin = This addon requires the main [SMSTunnel](https://wordpress.org/plugins/smstunnel/) plugin to be installed and configured first. = Key Features = * **SMS Tab in CF7 Editor** - Configure SMS notifications just like you configure email notifications * **Use Form Tags** - Include any form field in your SMS using CF7 mail-tags like [your-name], [your-email], [your-phone] * **More Than One Recipient** - Notify several numbers, for example you and a colleague * **Independent of Email** - The text goes out when a valid form is submitted, before Contact Form 7 sends its email, so it does not depend on the email working * **Admin Notifications** - Get instant SMS alerts when forms are submitted * **Customer Notifications** - Send confirmation SMS to form submitters = How It Works = 1. Install and activate SMSTunnel main plugin 2. Install and activate SMSTunnel CF7 3. Edit any Contact Form 7 form 4. Go to the new "SMS" tab 5. Configure recipient phone number and message template 6. Use mail-tags like [your-name] to personalize messages = Example SMS Template = `New contact from [your-name] Phone: [your-phone] Message: [your-message]` = Supported Mail-Tags = Your form's field tags and these special mail-tags are supported: * `[your-name]` - Submitter's name * `[your-email]` - Submitter's email * `[your-phone]` - Submitter's phone * `[your-message]` - Message content * `[_date]` - Submission date * `[_time]` - Submission time * `[_remote_ip]` - Submitter's IP address * Any custom field tags you define == Installation == = Requirements = * WordPress 5.0 or higher * PHP 7.4 or higher * Contact Form 7 plugin (active) * SMSTunnel plugin (active and configured) * SMSTunnel app on your Android phone, from Google Play: https://play.google.com/store/apps/details?id=io.smstunnel.app = Automatic Installation = 1. Ensure SMSTunnel main plugin is installed and connected 2. Ensure Contact Form 7 is installed and active 3. Go to Plugins > Add New 4. Search for "SMSTunnel CF7" 5. Click "Install Now" and then "Activate" = Manual Installation = 1. Download the plugin zip file 2. Go to Plugins > Add New > Upload Plugin 3. Upload the zip file and click "Install Now" 4. Activate the plugin = Configuration = 1. Go to Contact > Contact Forms 2. Edit any form 3. Click on the "SMS" tab 4. Enable SMS notifications 5. Enter the recipient phone number (with country code, e.g., +40712345678) 6. Write your message template using mail-tags 7. Save the form == External Services == This plugin relies on the [SMSTunnel](https://wordpress.org/plugins/smstunnel/) plugin to send SMS notifications. When a Contact Form 7 form is submitted, the following data may be transmitted to the SMSTunnel service and your paired Android device: * Form field values included in the SMS template (name, email, phone, message, etc.) * Submission metadata if used in the template (IP address via [_remote_ip], date, time) Data is sent only when SMS notifications are enabled for a specific form. The SMS is relayed through the SMSTunnel server to your own Android phone, which sends it as a standard SMS message. * **Service provider**: SMSTunnel.io (NARBOWEB SRL) * **Service URL**: https://smstunnel.io * **Privacy Policy**: https://smstunnel.io/privacy * **Terms of Service**: https://smstunnel.io/terms This plugin is a third-party integration and is not affiliated with, endorsed by, or sponsored by Contact Form 7 or its author. "Contact Form 7" is a trademark of its owner. == Frequently Asked Questions == = How do I add SMS notifications to Contact Form 7? = Link your Android phone in the main SMSTunnel plugin, activate this add-on and edit a form in Contact > Contact Forms. Open the new "SMS" tab, tick "Send SMS notification when this form is submitted", enter the phone number and the message, and save. = Do the texts come from my own number? = Yes. Each SMS leaves from the SIM in your Android phone, so people see your number and can reply. You don't pay SMSTunnel per message: your carrier's normal SMS rates apply. = Do I need the main SMSTunnel plugin? = Yes, this addon requires the SMSTunnel main plugin to be installed and configured with your Android phone. = Can I send SMS to the person who submitted the form? = Yes! Use a phone field in your form (e.g., [your-phone]) and set that as the recipient in the SMS tab. = Can I use form field values in the SMS? = Yes, use Contact Form 7 mail-tags like [your-name], [your-phone], [your-message], etc. = What phone number format should I use? = Use international format with country code, for example: +40712345678, +1555123456 = Can I notify more than one number? = Yes, separate the numbers with commas: +40712345678, +40723456789 = When is the SMS sent? = When someone submits a valid form, just before Contact Form 7 sends its email. The text does not depend on the email being delivered. = Is there a character limit for SMS? = Standard SMS is 160 characters. Longer messages will be split into multiple SMS segments by your carrier. == Screenshots == 1. New "SMS" tab added to the Contact Form 7 editor, with recipient phone number, message body using mail-tags, and optional SMS autoresponder == Changelog == = 1.2.3 = * Removed: The "Send SMS even if mail sending fails" option. It never changed anything: the texts are sent before Contact Form 7 tries the email, so they already go out whether or not the email is sent. Nothing changes for your forms. * Changed: The link in the "SMSTunnel plugin is not active" notice opens the SMSTunnel plugin page directly. = 1.2.2 = * Added: The official Google Play badge for the SMSTunnel app, in the SMS tab, in the notice shown when the SMSTunnel plugin is not active, and in this plugin's row on the Plugins page. * Changed: The plugin description now links to the app on Google Play and explains the optional end-to-end encryption. = 1.2.1 = * Fix: Prevent duplicate SMS sends - on mail failure with "send on fail" the same SMS could be dispatched 2-3 times; added per-submission idempotency guard * Security: Validate recipient phone numbers (E.164) and reject premium-rate numbers before sending, to prevent SMS abuse via public form fields = 1.2.0 = * Added SMS (2) autoresponder - send confirmation SMS to form submitters * SMS success message shown to user even when email delivery fails * Added permission check (manage_options) on SMS settings save * Added External Services disclosure for WordPress.org compliance * Fixed uninstall cleanup to delete correct meta keys * Added load_plugin_textdomain for proper internationalization * Regenerated translation template (.pot file) = 1.1.0 = * Added support for all CF7 mail-tags * Improved error handling * Added multiple recipient support * Better integration with SMSTunnel API = 1.0.0 = * Initial release * SMS tab in CF7 editor * Basic mail-tag support * Admin notifications == Upgrade Notice == = 1.1.0 = Improved mail-tag support and multiple recipients. Requires SMSTunnel main plugin. = 1.0.0 = Initial release of SMSTunnel CF7.