How to add a contact form to a website
By Ash, Founder, HosteazePublished 3 min read
The short answer
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.

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?
| Platform | How to add a form | Notes |
|---|---|---|
| WordPress | A form plugin | Contact Form 7 and WPForms each have millions of active installs |
| Website builders | Built-in form block | Messages usually arrive by email and in the builder's dashboard |
| AI website builders | Usually included in the generated contact page | Check where submissions are sent |
| Hand-coded site | A form service or a server-side script | Needs 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?
- Go to Plugins and choose Add New, search for your chosen form plugin, then install and activate it.
- Create a new form. Keep it short: name, email, phone (optional), and message.
- Add one question that helps you reply well, such as "What do you need help with?" as a drop-down.
- In the form's notification settings, set the recipient to an inbox someone checks daily.
- Set the Reply-To to the sender's email field, so you can reply directly.
- Add the form to your contact page, using the plugin's block or shortcode.
- Add a short line under the form, such as "We'll only use your details to reply to your enquiry", linked to your privacy notice.
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.
- Install an SMTP plugin, such as WP Mail SMTP, or use your form plugin's email settings.
- Connect it to your real email account or a sending service, so messages go out through a proper mail server.
- Make sure your domain has SPF and DKIM records. Our guide to setting up SPF, DKIM and DMARC explains how.
- Send the "from" address as your own domain, such as
website@yourbusiness.co.uk, not the visitor's address. Use Reply-To for theirs.
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?
- Turn on the honeypot option if your plugin has one. It adds a hidden field that bots fill in and people don't.
- Add a spam check. Cloudflare Turnstile can be added to any website and works without making visitors solve a puzzle. Google reCAPTCHA is the other common option. Most form plugins support one or both.
- Block obvious spam words or links in the message field, if your plugin allows it.
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.Choose a form tool
In WordPress, install a form plugin. On a website builder, use its built-in form block.
2.Build a short form
Ask only for name, email or phone, and the message, plus one question that helps you reply.
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.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.Add spam protection
Turn on a honeypot field and a spam check such as Cloudflare Turnstile or reCAPTCHA.
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.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.




