Skip to content

How to add a contact form to a website

By Ash, Founder, HosteazePublished 3 min read

In WordPress, install a form plugin such as Contact Form 7 or WPForms, build a short form, and place it on your contact page. Website builders have a form block built in. Then set up proper email sending so messages don't vanish, add spam protection, link to your privacy notice, and test it from an outside email address.

An old black rotary telephone on a desk beside a handwritten letter and a fountain pen.
Credit: 526663 via Pixabay

Adding a contact form takes ten minutes. Making sure every enquiry actually reaches you takes a little longer, and it's the part most people skip. A form that quietly fails is worse than no form at all, because customers think they've been in touch and you never hear from them.

Which tool should I use?

PlatformHow to add a formNotes
WordPressA form pluginContact Form 7 and WPForms each have millions of active installs
Website buildersBuilt-in form blockMessages usually arrive by email and in the builder's dashboard
AI website buildersUsually included in the generated contact pageCheck where submissions are sent
Hand-coded siteA form service or a server-side scriptNeeds more care with spam and security

As of October 2026, the WordPress.org directory shows Contact Form 7 with over 10 million active installs and WPForms with over 5 million. Either is fine for a simple contact form.

How do I add a contact form in WordPress?

How do I make sure messages arrive?

This is where most forms go wrong. By default, WordPress sends email using the web server, which often isn't authorised to send for your domain. Receiving servers then reject the message or put it in spam.

If test messages still land in junk, our guide to why emails go to spam covers the other causes.

How do I stop contact form spam?

Some of these tools set cookies or similar technologies. Mention them in your cookie information. Our guide to whether you need a cookie banner explains the rules.

What does UK GDPR require for a contact form?

You must tell people how you'll use their details at the time you collect them. A short line plus a link to your privacy notice does this. Our guide to what should be in a website privacy policy covers what the notice needs. Only ask for what you need, and delete old enquiries you no longer need.

How do I test it?

Submit the form yourself from a personal email address, outside your business. Check the message arrives, isn't in spam, and that hitting reply goes to the sender. Repeat after any plugin update, and add it to your website launch checklist.

If you host with us, your hosting includes free email, so you can send form messages through your own domain's mailbox. Our plans page has the details.

Step by step

  1. 1.Choose a form tool

    In WordPress, install a form plugin. On a website builder, use its built-in form block.

  2. 2.Build a short form

    Ask only for name, email or phone, and the message, plus one question that helps you reply.

  3. 3.Set where messages go

    Send submissions to an inbox someone checks daily, and set the reply-to address to the sender's email.

  4. 4.Fix email sending

    Use an SMTP plugin or your form tool's email settings so messages are sent through a proper, authenticated mail server.

  5. 5.Add spam protection

    Turn on a honeypot field and a spam check such as Cloudflare Turnstile or reCAPTCHA.

  6. 6.Link your privacy notice

    Add a line under the form explaining how you use the details, with a link to your privacy notice.

  7. 7.Test it

    Submit the form from an outside email address and confirm the message arrives and isn't in spam.

Frequently asked questions

Why is my contact form not sending emails?

Usually because the website sends mail from a server that isn't authorised to send for your domain, so receiving servers reject it or file it as spam. Sending through an authenticated SMTP connection, with SPF and DKIM set up for your domain, fixes most cases.

Do I need a tick box for GDPR on my contact form?

Not for simply replying to an enquiry, because you're using the details to do what the person asked. You do need to tell people how their data is used, usually with a short line and a link to your privacy notice. If you want to add them to a mailing list, that needs a separate, unticked opt-in.

Should I just show my email address instead of a form?

Show both if you can. Some people prefer to email directly. A form gives you structured enquiries and hides your address from basic harvesting bots, so it attracts less spam to your main inbox.

Sources

  1. WordPress.org, Contact Form 7 plugin
  2. WordPress.org, WPForms plugin
  3. Cloudflare, Turnstile documentation
  4. ICO, Right to be informed
A hand writing on a yellow sticky note resting on a laptop keyboard.TutorialHow to write prompts for an AI website builderGive the AI builder the facts it can't guess. Say what your business does, where, for whom, your services and prices, what makes you different, the tone you want, the pages you need and the one action visitors should take. Specific prompts produce specific websites. Then fix the draft one page at a time with short follow-up prompts.Websites and design · 26 November 2026A notebook page with a hand-drawn website layout and a handwritten list of features beside it.TutorialHow to write a website briefA good website brief fits on two pages and covers eight things: your business, your customers, the site's main goal, the pages you need, the features, examples you like, your budget and your deadline. Write it before you contact designers, so every quote is for the same job and nothing important gets missed.Websites and design · 26 November 2026The ornate stone front of an old building held up by a blue steel frame while the structure behind it is rebuilt.GuideHow to redesign a website without losing SEOBefore you redesign, list every page on your current site and note which bring in traffic. Keep the same addresses where you can. Where an address changes, set up a permanent 301 redirect from the old page to its closest new equivalent, and keep it for at least a year. Then submit a new sitemap and watch Search Console.Websites and design · 26 November 2026A fan of paint colour swatch cards spread out in rainbow order, from reds and yellows to greens and greys.QuestionHow do I make an AI-built website look unique?Replace everything generic the AI chose. Use your own photos instead of stock, set your brand colours and fonts rather than the defaults, rewrite the text in your own voice with real details, and change the home page layout. Small, consistent touches such as a distinctive headline, real customer stories and a clear logo do most of the work.Websites and design · 25 November 2026A smartphone showing a web page, resting on a laptop keyboard next to someone writing notes, the same site on two screen sizes.TutorialHow to make a website mobile-friendlyUse a responsive theme or builder template, make sure your pages include the viewport meta tag, keep body text readable without zooming, make buttons and links at least 24 by 24 pixels, compress images, and remove pop-ups that cover the page. Then test on a real phone and with Lighthouse, since Google retired its Mobile-Friendly Test.Websites and design · 24 November 2026

Ready to build your website?

Start with hosting set up for WordPress and small business websites.

See WordPress hosting