A Alumio vivid purple arrow pointing to the right, a visual representation of how to access more page material when clicking on it.
Go back

The ultimate guide to set up contact form 7 on WordPress

By
Published on
May 28, 2023
Updated on
June 24, 2026
IN CONVERSATION WITH
Email icon
Email icon

Creating a seamless communication channel between you and your website visitors is crucial for any successful online business. Contact Form 7 is a popular WordPress plugin that allows you to do just that. In this comprehensive guide, we'll walk you through the entire process of configuring Contact Form 7 for your WordPress site, from installation to customization.

Installing Contact Form 7

To get started, you'll need to install and activate Contact Form 7 on your WordPress website. Follow these steps:

  1. Log in to your WordPress admin dashboard.
  2. Navigate to Plugins > Add New.
  3. In the search bar, type "Contact Form 7" and hit Enter.
  4. Locate the Contact Form 7 plugin by Takayuki Miyoshi and click Install Now.
  5. Once the installation is complete, click Activate.

Congratulations, Contact Form 7 is now installed and ready to use on your site!

Creating Your First Contact Form

With Contact Form 7 installed, you can now create your first contact form. To do this, follow these steps:

  1. In your WordPress admin dashboard, go to Contact > Add New.
  2. Enter a title for your contact form in the designated field.
  3. You'll see a default form template already in place. You can modify this template or create a new one from scratch. For now, we'll use the default template.
  4. Click Save to save your new contact form.

Adding Form Fields

Customizing your contact form is easy with Contact Form 7. You can add various fields such as text boxes, dropdown menus, checkboxes, and more. Here's how:

  1. In the form editor, place your cursor where you'd like to add a new field.
  2. Click on the field type you want to add from the toolbar above the form template (e.g., text, email, URL, etc.).
  3. A popup window will appear where you can customize the field's properties, such as the label, default value, and required status.
  4. Click Insert Tag to add the field to your form template.

Repeat these steps for each field you want to add to your form.

Configuring Email Notifications

Once your form is ready, you'll need to set up email notifications to receive messages from your site visitors. To do this:

  1. Scroll down to the Mail section in the form editor.
  2. Enter your email address in the To field to receive form submissions.
  3. Customize the From, Subject, and Additional Headers fields as needed.
  4. In the Message Body field, ensure that all form field tags are included so that you receive the submitted information.

Don't forget to click Save to save your changes.

Styling Your Contact Form

To make your contact form visually appealing and consistent with your website's design, you can apply custom CSS styles. Here's how:

  1. In your WordPress dashboard, go to: Appearance > Customize.
  2. Navigate to the Additional CSS section.
  3. Add your custom CSS code to style the Contact Form 7 elements. For example:

.wpcf7-form {

  background-color: #f8f8f8;

  padding: 20px;

  border-radius: 5px;

}


.wpcf7-form input[type="text"],

.wpcf7-form input[type="email"],

.wpcf7-form textarea {

  width: 100%;

  padding: 10px;

  border: 1px solid #ccc;

  border-radius: 3px;

}


.wpcf7-submit {

  background-color: #4CAF50;

  border: none;

  color: white;

  padding: 15px 32px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 16px;

  margin: 4px 2px;

  cursor: pointer;

  border-radius: 5px;

}

  1. Click Publish to save your custom styles.

Your contact form should now be styled according to your preferences.

Tips for Spam Protection

Spam can be a significant issue for website owners. Fortunately, Contact Form 7 offers several options to protect your forms from spam submissions:

  1. CAPTCHA: Integrate with Google's reCAPTCHA service to add a CAPTCHA field to your form. This will require users to verify that they are human before submitting the form.
  2. Honeypot: Use the Contact Form 7 Honeypot plugin to add a hidden field to your form. Bots will fill in the field, but humans won't see it. If the field is filled in, the submission will be flagged as spam.
  3. Akismet: Integrate Contact Form 7 with the Akismet anti-spam service to automatically filter out spam submissions.

Implementing one or more of these methods can help keep your inbox clean and ensure you receive only legitimate messages from your site visitors.

Integrating with Alumio

Alumio is a powerful integration platform that can help you with your WordPress integrations with various applications and systems. By integrating Contact Form 7 with Alumio, you can automate processes and streamline your workflows.

For example, you can connect Contact Form 7 to your CRM system to automatically create leads or contacts when a form is submitted. This will save time and ensure that no leads are missed.

To integrate Contact Form 7 with Alumio, you'll need to:

  1. Sign up for an Alumio account.
  2. Create a new integration in Alumio, connecting WordPress and your desired application (e.g., CRM, marketing automation, etc.).
  3. Configure the integration settings to map Contact Form 7 fields to the appropriate fields in your connected application.
  4. Enable and test the integration to ensure everything is working correctly.

With Alumio and Contact Form 7 working together, you'll be able to create more efficient workflows and get the most out of your website's contact forms.

Turn AI ambition into action

Portrait of Leonie Becher Merli, Business Development Manager at Alumio

Get a free assessment of your integration needs and next steps

Portrait of Leonie Becher Merli, Business Development Manager at Alumio

No items found.
Topics in this blog:
No items found.

FAQ

Integration Platform-ipaas-slider-right
What is Contact Form 7 and how does it work?

Contact Form 7 is one of the most widely used free WordPress plugins for creating contact forms. It allows users to build customizable forms using a simple markup language, configure email notifications and auto-responses, and embed forms anywhere on a WordPress site using a shortcode. It supports multiple form configurations, AJAX-powered submission, and CAPTCHA integration via reCAPTCHA, covering the core needs of most contact form use cases without requiring a premium upgrade.

Integration Platform-ipaas-slider-right
How do you install and set up Contact Form 7 on WordPress?

Install Contact Form 7 by navigating to Plugins > Add New in the WordPress admin, searching for Contact Form 7, and clicking Install then Activate. A Contact menu item appears in the sidebar. Open it to find a default form, which can be edited or duplicated. Configure the form fields, the mail tab (for setting the recipient address, subject, and body), and the messages tab (for confirmation text). Copy the shortcode displayed at the top of the form editor and paste it into any page where the form should appear.

Integration Platform-ipaas-slider-right
How do you configure email delivery in Contact Form 7?

Email settings are configured in the Mail tab of each form. Set the To field to the receiving address, the Subject line (which can include form field values as variables), and the Message Body using form tags like [your-name] and [your-message]. By default, Contact Form 7 uses WordPress's wp_mail function, which relies on the server's mail configuration. For reliable email delivery, install an SMTP plugin (WP Mail SMTP, FluentSMTP) that routes mail through a dedicated email service like SendGrid or Mailgun.

Integration Platform-ipaas-slider-right
What are the most common Contact Form 7 problems and how to fix them?

The most common issues are: emails not delivering (usually a server mail configuration problem, fixed by an SMTP plugin), the form not submitting (often a JavaScript conflict, diagnosable by checking the browser console), reCAPTCHA not loading (API key misconfiguration), and spam submissions (resolved by integrating reCAPTCHA v3 or Honeypot for Contact Form 7). When troubleshooting, temporarily switch to a default WordPress theme to rule out theme conflicts before investigating plugin interactions.

Integration Platform-ipaas-slider-right
How do you customize Contact Form 7 fields?

Fields are customized in the Form tab using Contact Form 7's markup: generate a field tag by clicking the relevant button (text, email, dropdown, checkbox, file), configure its properties in the popup (required, placeholder, CSS class), and the generated tag appears in the form code. Arrange and label fields using standard HTML around the tags. Complex layouts or conditional field logic require a plugin extension like Conditional Fields for Contact Form 7.

Integration Platform-ipaas-slider-right
When should you use Contact Form 7 versus a premium form plugin?

Contact Form 7 is the right choice for basic contact forms with email delivery and CAPTCHA when you are comfortable with its markup-based configuration. Premium plugins like WPForms, Gravity Forms, or Formidable Forms add visual drag-and-drop builders, conditional logic, multi-step forms, payment integration, entry storage, and CRM connections. Choose a premium option when the form is a business-critical data collection point (lead generation, checkout, booking) where built-in extensibility and support justify the cost.

Get a free assessment of your integration needs

Laptop screen displaying the Alumio iPaaS dashboard, alongside pop-up windows for generating cron expressions, selecting labels and route overview.