How to Configure Contact Form 7 in WordPress: A Practical Setup Guide

How to Configure Contact Form 7 in WordPress

A contact form gives visitors a straightforward way to ask a question, request a quote, or report a problem without publishing your email address on your site. Contact Form 7 is a widely used WordPress plugin for creating forms, but installing it is only the first step. You also need to configure its fields and email settings, test delivery, and decide how to handle spam and personal information.

This guide walks through a basic setup and the checks that help make a form dependable. Menu labels may vary slightly with plugin or WordPress updates, so use the instructions as a practical starting point.

Before you build your form

Decide what information you actually need. A general enquiry form often needs a name, an email address, and a message. Asking for fewer details makes the form quicker to complete and reduces the personal information you collect.

Also decide who should receive submissions, whether visitors should receive an acknowledgement, and how your team will respond. Contact Form 7 does not store submissions in the WordPress dashboard by default. Plan a suitable way to manage enquiries, and avoid treating a form as a permanent archive.

Install Contact Form 7 and create a form

  1. In your WordPress dashboard, go to Plugins > Add New.
  2. Search for Contact Form 7, then install and activate the plugin.
  3. Open the Contact menu and choose the option to add a new form.
  4. Give the form a clear name, such as “General enquiries.”

The form editor includes a template with common fields. You can keep it as a starting point or adjust it to match your needs. A simple form might include these tags:

<label>Your name
[text* your-name autocomplete:name]</label>

<label>Your email
[email* your-email autocomplete:email]</label>

<label>Subject
[text your-subject]</label>

<label>Your message
[textarea your-message]</label>

[submit "Send message"]

The asterisk marks a required field. The field names, such as your-email, are mail-tags that you can use in the email template. Keep field names consistent if you change them; the email settings must use the same tags.

Use labels that clearly describe each field, and make the submit button say what happens next. If you add a phone number or other optional field, label it as optional rather than making visitors guess.

Configure the email settings

Open the form’s Mail tab. This controls the notification sent to your team when someone submits the form. Review every field rather than assuming the defaults are suitable.

  • To: Enter the inbox that should receive enquiries.
  • From: Use an address on your website’s domain, such as [email protected], if you have a mailbox configured for it.
  • Subject: Use a recognizable subject, for example “New website enquiry.”
  • Additional headers: Set Reply-To: [your-email] so your team can reply to the visitor using the address they submitted.
  • Message body: Include the relevant mail-tags, such as [your-name], [your-email], [your-subject], and [your-message].

A common mistake is putting the visitor’s email address in the From field. The message may then appear to come from a domain your site does not control, which can cause authentication or delivery problems. Use your own domain for the sender and the visitor’s address as the reply-to instead.

You can configure an acknowledgement in the Mail (2) section. Keep it brief and useful: confirm that the message was received and explain what happens next. Do not include sensitive information in an automatic reply, and make sure the recipient is the visitor’s email mail-tag.

Publish the form and test the full journey

Save the form and copy its shortcode from the form’s page in the dashboard. Add it to the page where visitors should contact you using a Shortcode block, or paste it into an appropriate editor field. Preview the page on desktop and mobile before publishing.

Then submit a real test message. Check that required fields work, the confirmation message makes sense, and the notification arrives at the intended inbox. Test the reply-to address by replying to the notification. If you enabled an acknowledgement, confirm that it reaches the test address too. Check junk folders as well as the main inbox.

If messages do not arrive consistently, review the form’s mail configuration and your domain’s email authentication and sending setup. WordPress sites may rely on the server’s default mail handling, which is not always the best fit for reliable delivery. Consider a properly configured SMTP or transactional email service, and test after making changes. Your hosting provider may also be able to help investigate server-side delivery issues; see what to look for in expert WordPress support.

Reduce spam and protect visitor information

Public forms can attract automated spam. Contact Form 7 offers integrations, including reCAPTCHA, that you can configure from its integration settings. Follow the current setup instructions for the service you choose, and test the form afterward. CAPTCHA can add friction for visitors, so consider whether it is appropriate for your audience. Other anti-spam options may be available through compatible plugins; check compatibility and maintenance before adding one.

Keep WordPress, the form plugin, and related extensions updated. Use strong account security and limit dashboard access to people who need it. A WordPress website firewall can be one part of a broader site-security approach, but it does not replace form-level spam controls, software updates, or good email practices.

Explain why you collect information and how visitors can contact you about it. Add a clear privacy notice near the form where appropriate, and collect only information that is necessary for the enquiry. Contact Form 7 does not save submissions by default, but email copies, mail services, logging tools, and other plugins may process or retain form data. Review the services in your setup and your applicable privacy obligations.

Troubleshoot common Contact Form 7 problems

  • The form does not appear: Confirm the shortcode is correct and that the plugin is active. Check the page in a private browser window in case caching is showing an older version.
  • A required field is rejected: Check that the visitor filled in every field marked required and that the field type matches its expected input.
  • The form reports success, but no email arrives: Verify the recipient and mail-tags, check spam folders, and test the site’s email-sending configuration.
  • Messages land in spam: Use a sender address on your domain, configure email authentication with your mail provider, and avoid misleading subjects or unnecessary links.
  • The layout looks wrong: Review the page theme’s styles and test on different screen sizes. Make styling changes carefully so form labels and error messages remain legible.

When investigating a problem, change one thing at a time and submit another test. If the issue began after a plugin or theme update, check compatibility and consult the relevant plugin documentation before disabling components on a live site.

Frequently asked questions

Does Contact Form 7 save messages in WordPress?

Not by default. Its standard behavior is to send form submissions by email rather than create a submission inbox in the dashboard. If you need records, review an appropriate storage option and consider its privacy, access, and retention implications.

Why is Contact Form 7 not sending emails?

Possible causes include an incorrect recipient, mismatched mail-tags, server mail restrictions, or email authentication and delivery issues. Check the form’s Mail tab, test delivery, and contact your email or hosting provider if the sending configuration needs investigation.

Can I use Contact Form 7 for a quote request?

Yes. Add only the fields you need to assess a request, explain which information is required, and set expectations about follow-up. For sensitive or payment information, use a suitable secure service instead of collecting it in a general contact form.

Is Contact Form 7 enough to stop spam?

No single setting can guarantee that a public form will receive no spam. Use an appropriate anti-spam integration, keep the site maintained, and monitor submissions so you can adjust protections if abuse becomes a problem.

Make the form part of a reliable WordPress setup

A useful contact form depends on more than its fields: email delivery, spam controls, privacy practices, and routine testing all matter. If your site is business-critical, include those needs when comparing managed WordPress hosting options, and look for a setup that fits your site’s security and support requirements. Review the form again whenever you change its fields, email provider, or related plugins.