The SMS Alert WordPress plugin adds an SMS Alert section to every WPForms form. From there you can send an SMS to the visitor who submitted the form, send an SMS to one or more admins, and make the visitor verify their mobile number with an OTP before the form is submitted. Messages can include what the visitor typed, using WPForms smart tags. The settings are saved separately for each form.
New to the plugin? Install it and connect your account with the WordPress SMS plugin setup guide.
Before you start
- Install and activate WPForms (Lite or Pro), the SMS Alert plugin and connect your SMS Alert account. The SMS Alert section appears only when the account is connected.
- Keep SMS credits in your account. Every SMS and OTP uses credits.
- On India routes, the message text must match an approved DLT template. See the DLT process and steps and Convert into DLT Template.
- Your form needs a phone number field. With WPForms Pro, set the field’s format to International so the number includes the country code.
Configuration
- In the WordPress dashboard, go to WPForms and edit your form, or create a new one.
- Add a field for the visitor’s phone number.
- Open the form builder’s Settings and choose SMS Alert.
- Turn on Enable Message to send SMS after submission.
- In Select Phone Field, choose the phone field by its smart tag.
- In Send Admin SMS To, enter the admin mobile number. You can add up to 10 numbers.
- Edit Visitor Message and Admin Message.
- Click Save.
If you turn on messages or OTP without choosing a phone field, saving shows “Please choose SMS Alert phone field in SMS Alert tab.”
The SMS Alert settings at a glance
Setting | What it does |
|---|---|
Enable Message | Turns SMS notifications on for this form. |
Enable Mobile Verification | Makes the visitor verify the phone number with an OTP before the form is sent. |
Send Admin SMS To | The admin numbers that receive the admin SMS. Up to 10, no duplicates. |
Admin Message | The SMS text sent to the admin. |
Select Phone Field | The form field that holds the visitor’s mobile number. |
Visitor Message | The SMS text sent to the visitor. |
On WPForms versions older than 1.6.2.3 the on and off switches appear as checkboxes.
Visitor notification
- In the form builder, go to Settings, then SMS Alert.
- Make sure Enable Message is on.
- In Select Phone Field, choose the visitor’s phone field.
- Write the Visitor Message. Use smart tags to include the visitor’s answers.
- Click Save.
The default text is “Hello user, thank you for contacting with [store_name].” The SMS is sent when the form is submitted successfully.
Admin notification
- In the form builder, go to Settings, then SMS Alert.
- Make sure Enable Message is on.
- In Send Admin SMS To, enter the admin number or numbers.
- Write the Admin Message. Use smart tags to include the visitor’s details.
- Click Save.
The default text is “Dear admin, you have a new enquiry from [store_name].” The admin SMS is sent only if at least one admin number is entered.
OTP verification
- In the form builder, go to Settings, then SMS Alert.
- Turn on Enable Mobile Verification.
- In Select Phone Field, choose the phone field to verify.
- Click Save.
The form then shows a verify step on the phone field. If the visitor submits without verifying, the form shows “Your mobile number is not verified yet. Please verify your mobile number.” Verification applies to one submission, so the next submission needs a new OTP. If a country code selector is enabled in the plugin’s general settings, the phone field shows it.
Smart tags and variables
Use WPForms smart tags for field values, for example the tag for a field with ID 1 is {field_id="1"}. The plugin also replaces [store_name] with your site or store name.
Hello {field_id="1"}, thank you for contacting [store_name]. We will reply shortly.Troubleshooting
Problem | What to check |
|---|---|
The SMS Alert section is missing | WPForms or the SMS Alert plugin is not active, or your SMS Alert account is not connected. |
“Please choose SMS Alert phone field” on save | Select the phone field in Select Phone Field. |
No visitor SMS | Check that Enable Message is on, the phone field is selected, the message is not empty and credits are available. |
No admin SMS | Check that Send Admin SMS To has at least one number. |
A smart tag appears as text | The tag does not match a field in the form. Insert it with the smart tag button. |
No OTP arrives | Check credits, the number format (including country code), the sender ID, DLT approval and the delivery report. |
The form says the number is not verified | The visitor must verify the OTP before submitting. |
The SMS is rejected on India routes | The text does not match your approved DLT template. See Template Mismatch Error. |
Frequently asked questions
What does the WPForms integration do?
It sends SMS when a WPForms form is submitted: to the visitor, to admins or both, and can verify the visitor’s number with an OTP first.
Where are the settings?
In the form builder, under Settings, in the SMS Alert section.
Are the settings per form?
Yes.
Does it send SMS to the visitor as well as the admin?
Yes. The visitor SMS goes to the phone field you select, and the admin SMS goes to the admin numbers.
How many admin numbers can I add?
Up to 10.
How do I put the visitor's answers in the SMS?
Use WPForms smart tags in the message.
How does OTP verification work?
The phone field gets a verify step, and the form cannot be sent until the number is verified. Each submission needs a new verification.
What phone format should I use?
With WPForms Pro, set the phone field’s format to International so the country code is included
Does it use SMS credits?
Yes, for every SMS and OTP.
