How to Add a Contact Form to Your WordPress Site
A contact form lets visitors write to you without opening their own mail program. It also keeps your email address off the page, which cuts down on spam. Adding one to WordPress takes only a few minutes, but there are a few things to get right, especially making sure messages arrive. This guide walks through it.
Step 1: Choose a form plugin
WordPress does not include a contact form, so you add one with a plugin. Pick a well-known one with recent updates and many users. Our guide on WordPress plugins explains how to judge a plugin. Install it from the Plugins menu in the dashboard and turn it on.
Step 2: Build the form
Keep the form short. Name, email and message are enough for most sites. Every extra field lowers the number of people who finish it. If you need more detail, such as a phone number or the service they want, add only what you will really use.
Step 3: Set where messages go
In the form settings, enter the email address that should receive messages. Use a mailbox on your own domain, such as info@yourdomain.com, and make sure it exists. Our guide on professional email on your own domain explains how to create one.
Step 4: Add the form to a page
Create a page called Contact. The plugin gives you a block or a short code to place in the page. Paste it in, then publish and view the page on a computer and a phone.
Step 5: Test it
- Send a test message from the live page.
- Check that the message arrives in the right mailbox, and look in spam too.
- Reply to it, to check that the reply goes to the sender and not to your own address.
- Ask a friend to test from another device.
If messages do not arrive
This is the most common problem. Mail sent by a website plugin can be marked as spam if your domain records are incomplete. Make sure SPF, DKIM and DMARC are in place, and send the message from an address on your own domain. Our guide on SPF, DKIM and DMARC shows the steps. Check the spam folder, and check that the receiving mailbox is not full.
Protect the form from spam
- Use the spam protection option of your plugin.
- Add a simple check that real people pass but robots do not.
- Keep the plugin updated.
- Do not publish your email address as plain text on the same page.
Be clear and kind to visitors
Add a short line that says when you reply, for example within one working day, but only promise what you can do. Show a clear thank-you message after sending, and send an automatic confirmation if your plugin can do it. If you collect personal data, add a short note about how you use it and link to your privacy page.
Quick summary
Install a trusted form plugin, keep the form short, send messages to a mailbox on your domain, add the form to a Contact page and test it. If mail does not arrive, check your email records and your spam folder. Protect the form from spam and be clear about how you will reply.
FAQ
Do I need a form plugin?
You can simply show an email link, but a form keeps your address private and gives you the details you need.
Can I have more than one form?
Yes. Many sites use one for general questions and another for quotes.