The SMS Alert WordPress plugin adds an SMS Alert tab to every Contact Form 7 form. From it you can send an SMS to the visitor who submitted the form, send an SMS to an admin, and add the submitter to an SMS Alert contact group. The message text can include what the visitor typed, using Contact Form 7 field tags such as the name or the mobile number.
New to the plugin? Install it and connect your account with the WordPress SMS plugin setup guide.
What can you do with Contact Form 7 and SMS Alert?
I want to… | Section |
|---|---|
Confirm to the visitor that their form was received | Customer notification |
Alert my team when a form is submitted | Admin notification |
Save every enquirer as a contact for later messages | Add contacts to a group |
Verify the visitor’s number before the form is sent | Verify the number with OTP |
Before you start
- Install and activate Contact Form 7, the SMS Alert plugin and connect your SMS Alert account.
- Keep SMS credits in your account. Every SMS uses credits.
- On India routes, the message text must match an approved DLT template. See Convert into DLT Template.
Set up the form (configuration)
- In the WordPress dashboard, open Contact Form 7 and create or edit your form.
- Add a mobile number field to the form. You can use a standard phone field, for example
[tel* your-mobile], or the SMS ALERT PHONE field from the tag generator. - Click Save.
- Open the SMS Alert tab of the same form to configure the SMS.
The settings are saved separately for each form.
Using form field tags in your message
In the number fields and the message text, you can use the same field tags as in Contact Form 7’s Mail tab. When the form is submitted, each tag is replaced with what the visitor entered. For example, if your form has fields named your-name and your-mobile:
Hello [your-name], thank you for contacting us. We have received your enquiry and will reply shortly.Use the visitor’s mobile field tag, for example [your-mobile], as the visitor number.
Customer notification (visitor SMS)
- Open your form in Contact Form 7 and go to the SMS Alert tab.
- Go to the Visitor SMS Notifications section.
- Make sure visitor notifications are enabled.
- Select the form field that contains the visitor’s mobile number.
- Write your SMS in the message body. Use field tags for the visitor’s details.
- Click Save.
The SMS is sent only when notifications are on, a number field is selected and the message is not empty. If you enable visitor SMS without choosing a phone field, the form editor shows the warning “Please choose SMS Alert phone field in SMS Alert tab”.
Admin notification (admin SMS)
- Open your form in Contact Form 7 and go to the SMS Alert tab.
- Go to the Admin SMS Notifications section.
- Enter the admin mobile number that should receive the alert. By default it is filled with the mobile number saved on your own account.
- Write the SMS body. You can include field tags, such as the visitor’s name and message.
- Click Save.
The SMS is sent only when admin notifications are on and both the number and the message are filled in.
Add contacts to a group (add-to-group)
To keep a database of everyone who contacts you, add each submitter to an SMS Alert group automatically.
- Open your form and go to the SMS Alert tab.
- Go to the Create Contacts in SMS Alert Group section.
- Select the group.
- Select the token for the Name field.
- Click Save.
The contact’s number comes from the visitor number field. The other fields on the form are sent as extra fields of the contact.
Verify the number with OTP
To make visitors verify their mobile number before the form is sent, use the SMS ALERT PHONE field and enable the option “Use this field for sending OTP to Mobile Number”. Visitors who skip verification see “Your mobile number is not verified yet. Please verify your mobile number.” Full steps are in OTP verification with Contact Form 7.
Troubleshooting
Problem | What to check |
|---|---|
The SMS Alert tab does not appear | Confirm Contact Form 7 and the SMS Alert plugin are both active and your SMS Alert account is connected. |
No visitor SMS is sent | Confirm visitor notification is on, the correct mobile field is selected, the message is not empty and you saved the form. |
No admin SMS is sent | Confirm admin notification is on and both the admin number and the message are filled in. |
A tag shows as text in the SMS | The tag does not match a field name on the form. Compare it with the field names in the form tab. |
The warning “Please choose SMS Alert phone field” appears | Select the visitor’s mobile field in the Visitor SMS Notifications section. |
Contacts are not added to the group | Select a valid group and map the Name field in the Create Contacts section. |
The SMS is rejected on India routes | The text does not match your approved DLT template. See Template Mismatch Error. |
Number format errors | Check the visitor’s number and country code. |
Frequently asked questions
What does the Contact Form 7 integration do?
It sends SMS when a Contact Form 7 form is submitted: to the visitor, to an admin or both, and it can add the submitter to an SMS Alert group.
Where are the settings?
In the SMS Alert tab of each Contact Form 7 form.
Are the settings per form?
Yes. Each form has its own SMS Alert settings.
Can I include what the visitor typed in the SMS?
Yes. Use the form’s field tags, such as [your-name], in the message text.
Which mobile field should I use?
A standard phone field such as [tel* your-mobile] works for SMS. Use the SMS ALERT PHONE field if you also want OTP verification.
When is the SMS sent?
When the form is submitted successfully, at the moment Contact Form 7 prepares its email.
Can I add submitters to a contact group?
Yes, in the Create Contacts in SMS Alert Group section.
Do I need DLT registration?
On India routes, yes. The text must match an approved template.
Does it use SMS credits?
Yes, for every SMS.
