πŸ”΅
WordPress

How to Create a WordPress Contact Form

πŸ“… 9 October 2026 ✏️ 9 October 2026 ⏱ 5 min leestijd

Learn step by step how to create a WordPress contact form with a plugin, including spam filter, email handling, and SSL protection.

A contact form on your WordPress website allows visitors to reach you without having to display your email address on the page. You can create such a form with a plugin like Contact Form 7 or WPForms, link it to an email address, and protect it against spam. In this article, you’ll find the complete process, from installation to testing.

Which plugin to choose

You almost always need a plugin for a contact form, as WordPress doesn’t have this built in by default. Popular options include Contact Form 7, WPForms, and Forminator. Contact Form 7 is free, lightweight, and flexible, but requires a bit more manual configuration. WPForms has a visual drag-and-drop builder, making it quicker to set up for those with little coding experience. Forminator is often pre-installed with certain themes or hosting packages.

Install your plugin via the WordPress dashboard under Plugins > Add New Plugin. Search for the name, click Install, and then activate the plugin. Keep in mind that too many plugins can affect your site’s loading time, so it’s best to choose one form plugin rather than running several side by side.

Creating and configuring the form

After activation, a new menu item will appear in the dashboard, such as ‘Contact’ or ‘WPForms’. Here you create a new form and choose which fields you need: name, email address, subject, and message are the basics. Many plugins offer ready-made templates for a standard contact form, so you don’t have to start from scratch.

1

Create a new form

Go to the form menu in your dashboard and choose a new contact form or a template.

2

Add fields

Add the fields you need, such as name, email address, phone number, and message text. Mark required fields.

3

Place the shortcode

Copy the generated shortcode and paste it on the page where the form should appear, such as your contact page.

4

Link an email address

Set which email address completed forms should be sent to.

5

Test the form

Fill out the form yourself from the live page and check whether the email arrives.

Save the settings and view the page in the preview. Adjust the styling if necessary using CSS or the plugin’s style options, so the form matches your website’s design.

FormSpam filter(CAPTCHA)Mailboxadmin

Email handling and spam protection

A common problem is that emails from the contact form don’t arrive or end up in the spam folder. This is usually because the default WordPress mail function (PHP mail) is often not properly recognized by receiving mail servers. A better solution is to set up SMTP sending via a plugin like WP Mail SMTP, linked to your own business email address. This way, you send form mail through a genuinely authenticated mail server, which greatly improves deliverability.

If you want a professional email address with your domain name, you can easily arrange this via business email. Also make sure your domain is correctly configured with SPF, DKIM, and DMARC, so mail servers trust your messages instead of marking them as spam.

Also add spam protection, such as a CAPTCHA, honeypot field, or reCAPTCHA. Most form plugins have this built in, and you only need to activate it in the settings. Without this protection, you’ll sooner or later receive automated spam messages on a public website.

πŸ’‘ Tip: Always test with an external email address (such as Gmail) to see if the message arrives properly and doesn’t end up in the spam folder, before making the form live.

Testing the form and troubleshooting

No email arriving after sending a test message? First check whether the configured email address is correct in the plugin settings. Then check the recipient’s spam or junk folder. If this still doesn’t work, install an SMTP plugin so mail is sent via a real mail account instead of the server’s default function.

With many hosting packages, you can manage mail settings and SSL certificates via Plesk. In the Plesk panel, you can immediately see whether your domain is actively using a valid SSL certificate, which is important because otherwise form data is sent unencrypted. If you don’t yet have a domain name or hosting arranged, check out the options for domain names and web hosting.

If your current hosting provider gets stuck on these kinds of settings or support takes too long, switching to Tandata is often a simple solution, including help with the technical settings.

Frequently Asked Questions

Do I need a plugin for a contact form?

Yes, WordPress doesn’t have a built-in form feature by default. A plugin like Contact Form 7 or WPForms adds this functionality.

Why isn’t the email from my form arriving?

This is usually because the server’s default PHP mail function isn’t properly recognized. Set up SMTP via a plugin and link it to a real email address for reliable delivery.

How do I prevent spam through my contact form?

Activate built-in spam protection such as a honeypot field or CAPTCHA in your form plugin.

Can I use multiple contact forms on one site?

Yes, most plugins support multiple forms with their own fields and settings, which you can place on different pages.

Is an SSL certificate necessary for a contact form?

Yes, without SSL, submitted data is sent unencrypted. Check in your hosting panel whether SSL is active on your domain.

Conclusion

You can easily create a WordPress contact form with a plugin like Contact Form 7 or WPForms: add fields, link an email address, enable spam protection, and test thoroughly before making the form live. Ensure SMTP and SSL are set up so messages arrive reliably and securely.

View web hosting β†’

Was dit artikel nuttig?