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

  1. In the WordPress dashboard, go to WPForms and edit your form, or create a new one.
  2. Add a field for the visitor’s phone number.
  3. Open the form builder’s Settings and choose SMS Alert.
  4. Turn on Enable Message to send SMS after submission.
  5. In Select Phone Field, choose the phone field by its smart tag.
  6. In Send Admin SMS To, enter the admin mobile number. You can add up to 10 numbers.
  7. Edit Visitor Message and Admin Message.
  8. 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

  1. In the form builder, go to Settings, then SMS Alert.
  2. Make sure Enable Message is on.
  3. In Select Phone Field, choose the visitor’s phone field.
  4. Write the Visitor Message. Use smart tags to include the visitor’s answers.
  5. 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

  1. In the form builder, go to Settings, then SMS Alert.
  2. Make sure Enable Message is on.
  3. In Send Admin SMS To, enter the admin number or numbers.
  4. Write the Admin Message. Use smart tags to include the visitor’s details.
  5. 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

  1. In the form builder, go to Settings, then SMS Alert.
  2. Turn on Enable Mobile Verification.
  3. In Select Phone Field, choose the phone field to verify.
  4. 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.

In the form builder, under Settings, in the SMS Alert section.

Yes.

Yes. The visitor SMS goes to the phone field you select, and the admin SMS goes to the admin numbers.

Up to 10.

Use WPForms smart tags in the message.

The phone field gets a verify step, and the form cannot be sent until the number is verified. Each submission needs a new verification.

With WPForms Pro, set the phone field’s format to International so the country code is included

Yes, for every SMS and OTP.

Still can't find the solution for your Query?

Contact Support