What Contact Form 7 does on your site
Contact Form 7 is one of the oldest form plugins for WordPress: it has been on wordpress.org since 2007 and is developed by Takayuki Miyoshi and his company, Rock Lobster Inc. It is completely free, with no paid edition. You don’t drag and drop a form together: you write it as a text template with form-tags such as [email* your-email], and a tag generator helps you build them. You then insert the form with the "Contact Form 7" block or a shortcode.
On submission, the plugin validates the fields, then sends the email defined in the form’s Mail tab through WordPress’s wp_mail() function. Nothing is stored in the database: the developer says so plainly and points to Flamingo, his own plugin for keeping messages.
The Contact > Integration screen connects outside services: Akismet, Cloudflare Turnstile and reCAPTCHA v3 against spam, Stripe for payments (HTTPS required) and Brevo for contact lists. On the front end, the plugin loads its JavaScript and stylesheet on every page by default and receives submissions through the WordPress REST API.
Which sites Contact Form 7 is a good fit for
- Brochure sites that need a contact or quote request form without paying for a premium plugin.
- Job applications and documents: the file field attaches a résumé or a PDF to the email, then deletes it from the server.
- Developers and agencies who prefer a text template, constants and PHP filters to a visual builder.
It is the wrong choice if you want to browse and export submissions in the dashboard without another plugin, build forms by drag and drop, or use conditional logic and multi-step forms, which the plugin does not offer. WPForms and Fluent Forms provide a visual builder, with features split between a free and a paid edition.
Contact Form 7 strengths and limitations
Strengths
- Free with no strings. No feature is held back for a paid edition; only third-party services (Akismet on a commercial site, Stripe, Brevo) can cost money.
- Built-in spam protection. Turnstile, reCAPTCHA v3 and Akismet plug in without add-ons and can be combined.
- Fast fixes. The critical 2020 vulnerability was patched the day after it was reported.
- Configuration checks. The edit screen flags mistakes such as a sender address outside the site’s domain or attachments that are too large.
Limitations
- No message storage. If the email gets lost, so does the message, unless Flamingo is installed.
- No visual editor. You have to learn the tag syntax, and styling depends on your theme or your own CSS.
- Assets on every page. The script and stylesheet load site-wide; restricting them means editing the theme.
- No advanced features. Conditional logic and multi-step forms require third-party add-ons, which come with their own vulnerabilities.
- High requirements. Since version 6.2 it needs WordPress 7.1 and PHP 8.3: older sites no longer get new releases.
The Contact Form 7 settings we recommend
Each form’s settings live under Contact > Contact Forms, once you open the form. Most "emails never arrive" problems come down to the sender or the sending method, hence the first three rows.
| Setting | Recommended value | Why |
|---|---|---|
| From Contact > Contact Forms > Mail tab | A real address on the site’s domain, for example My Site <contact@example.com> | A Gmail or Yahoo address looks like spoofing and lands in spam; the plugin flags it as an error. |
| Additional headers Mail tab | Reply-To: [your-email] (the default template value) | You reply straight to the visitor without putting their address in the From field. |
| Authenticated sending SMTP plugin and the domain’s DNS zone | Send through an SMTP server, with SPF and DKIM | Contact Form 7 relies on wp_mail(): a plugin such as WP Mail SMTP makes every send more reliable. |
| Turnstile Contact > Integration > Turnstile > Setup integration | Site Key and Secret Key from a Cloudflare widget in Managed mode | Free and recommended by the developer; the widget is added to every form without writing a tag. |
| Akismet Form tab | akismet:author and akismet:author_email options on the name and email fields | Catches human spammers that CAPTCHAs let through; Akismet must be active with an API key. |
| File field Form tab, then File attachments in the Mail tab | [file cv filetypes:pdf limit:2mb], then [cv] in File attachments | Without these options the plugin accepts images, audio and video up to 1 MB, defaults that may change; total attachments are capped at 25 MB. |
| Message retention Plugins > Installed Plugins | Flamingo active if every message matters | A copy stays in the dashboard if the email fails; set a retention period that fits your privacy obligations. |
| Updates Plugins > Installed Plugins | Auto-updates on, version 6.2.4 or later | Security fixes ship in minor releases. |
Asset loadingwp-config.php | Leave the default unless your theme re-enqueues the files on form pages | Setting WPCF7_LOAD_JS and WPCF7_LOAD_CSS to false also breaks existing forms: test a submission after any change. |
- Send a test message and check that it reaches the inbox, not the spam folder.
- Enter
akismet-guaranteed-spam@example.comin the email field: an orange-bordered error message confirms that Akismet is filtering. - Open each form and fix any configuration errors it reports.
- On Nginx, have your host confirm that PHP cannot run in
wp-content/uploads, where the plugin temporarily stores uploaded files.
To protect the rest of your site from bots, see our WordPress anti-spam page.
File uploads, Contact Form 7’s weak spot
The plugin’s most serious vulnerabilities involve uploaded files. In December 2020, version 5.3.2 fixed CVE-2020-35489, an unrestricted file upload that required no account and was rated 10.0 by NVD. Medium-severity issues followed, fixed in 5.8.4, 5.9.2, 5.9.5 and 6.0.6.
On October 29, 2026, version 6.2.4 fixed an unauthenticated arbitrary file upload that affected only versions 6.2 to 6.2.3. It was reported through WPScan by Shinya Murakami and Jakub Herman, and Patchstack rates it CVSS 8.1. Since then, the plugin only accepts a safelist of file extensions (images, audio, video, pdf, txt) and renames anything else. A docx résumé or a zip archive therefore has to be added with the wpcf7_file_extension_safelist filter.
The step that matters is still automatic updates (see our guide to plugin auto-updates); the full history is in our article on Contact Form 7 security vulnerabilities. WP Feint Pro removes some of the traces that point bots to Contact Form 7 (the next section lists which), which makes the plugin harder to spot but does not replace the patch.
What WP Feint hides for Contact Form 7
Free version Handled by the free plugin Feint Security
Contact Form 7 is one of the 50 most used plugins known to the free version. Pro goes further by renaming its files.
Free version
Nothing to remove
With Pro
- folder name
- tag IDs
Still visible
- JavaScript variables
wpcf7 - CSS classes
wpcf7, wpcf7-form - REST routes
/wp-json/contact-form-7/v1/
These traces stay because the plugin needs them to work (scripts, styles, cookies) or because they come from the server.
Contact Form 7 frequently asked questions
Does Contact Form 7 save submitted messages?
No, it only sends an email. To keep a copy in the dashboard, install Flamingo, from the same developer.
Why do form emails land in spam, or never arrive?
Usually the From address is not on the site’s domain, or the server sends without authentication. Use an address on your domain, an SMTP plugin and SPF and DKIM records.
Should I pick reCAPTCHA or Turnstile?
The developer recommends Turnstile, which is free, unless you have a specific reason: Google is moving reCAPTCHA users to reCAPTCHA Enterprise, which means higher costs for many sites. Either way, add Akismet to stop human spammers.
Can Contact Form 7 load only on the contact page?
Yes: turn off global loading with WPCF7_LOAD_JS and WPCF7_LOAD_CSS, then call wpcf7_enqueue_scripts() and wpcf7_enqueue_styles() before wp_head() in that page’s template. This means editing the theme, so test on a staging copy.
My host runs PHP 8.1. What should I do?
Contact Form 7 6.2 requires PHP 8.3 and WordPress 7.1. Switch to PHP 8.3 in your hosting control panel, after testing on a copy, to keep receiving fixes.