Web Development14 min read2026-11-25

How to Set Up a Website Contact Form That Actually Works

Stop losing Nigerian customers to broken contact forms. Learn how to build a simple, fast, spam-proof form that delivers every enquiry to your inbox or WhatsApp.

J

Igono Joel

Published 2026-11-25

How to Set Up a Website Contact Form That Actually Works — featured image for Joetech blog article about tech skills and AI

Every day, Nigerian businesses lose customers they never knew about. A potential client visits a website in Lagos, likes what they see, fills in the contact form, clicks send — and nothing happens. The message never arrives. The business owner checks the inbox, sees nothing, and assumes nobody enquired. The customer, meanwhile, assumes the business is not serious and moves on to a competitor.

A contact form looks simple, but it is one of the most important parts of a business website. It is the bridge between a visitor and a sale. When it works, enquiries arrive in your inbox within seconds, you reply quickly, and you win the customer. When it fails silently, you lose money without ever knowing it.

This guide shows you how to set up a website contact form that actually works in Nigeria. You will learn which fields to include, which to leave out, how to stop spam without annoying real customers, how to make sure emails actually arrive, how to connect the form to WhatsApp, and how to test it properly before your customers do.

What a Contact Form Really Does

A contact form has one job: to turn a website visitor into a conversation. It is not a survey, not a registration page, and not a place to collect every detail about a customer. The shorter and simpler the form, the more people will complete it.

Think about your own behaviour. A form asking for your name, email, phone, company, budget, location and project details makes you close the tab. One asking only for your name, phone number and a short message takes thirty seconds. Your customers behave the same way.

A good form collects just enough information for you to reply usefully. That usually means a name, a way to reach the person, and a message. Everything else can be asked later, in the conversation, once the customer is already interested. Every extra field you add reduces the number of people who finish the form. Research consistently shows that long forms convert far worse than short ones, and Nigerian customers on mobile phones with limited patience are even less forgiving.

Your form also needs to work on the devices your customers actually use. Most Nigerian website traffic comes from Android phones on MTN, Airtel, Glo or 9mobile, often on 3G or weak 4G. If your form is heavy, slow, or hard to tap on a small screen, customers will abandon it.

Step 1: Choose the Right Fields

Start with five fields at most, and in most cases four is enough. Here is the field list that works for most Nigerian service businesses, from a fashion designer in Lekki to a logistics company in Ikeja to a hotel in Chevron Drive.

First, full name. Make this a single field, not separate first name and last name fields. One field is faster to fill and easier to read in your inbox. Mark it as required, because a message from an unnamed person is hard to follow up.

Second, phone number, ideally WhatsApp number. For Nigerian businesses, the phone number is more important than the email address, because most follow-up happens on WhatsApp or by phone call. Label the field "Phone / WhatsApp Number" so customers give you the number they actually use on WhatsApp. Mark it as required. Add a short hint inside the field, such as "0803 123 4567", so customers enter it in the format you expect.

Third, email address. Keep it as a required field only if you genuinely need it, for example if you send quotes or invoices by email. For many small businesses, email can be optional, because the customer will reply faster on WhatsApp anyway. If you do ask for email, check that the form validates it properly, so a customer who types a wrong address gets a clear error message instead of a silent failure.

Fourth, subject or service needed. A simple dropdown works well here: "Website Design", "Logo Design", "Digital Marketing", "Other", for example. A dropdown helps you sort enquiries quickly and helps the customer describe what they want without writing a long message. Keep the list short, with five to seven options at most, and always include an "Other" option.

Fifth, message. Give the customer a large text box with a helpful placeholder, such as "Tell us what you need, your location, and when you need it." Mark it as required, but keep the minimum length short. A customer who writes "I need a website for my boutique in Lekki" has given you enough to start a conversation. Do not demand a full project brief before you have even said hello.

Step 2: Pick the Right Tool for Your Website

The best form tool depends on how your website was built. There is no single right answer, but there are clear choices for the most common setups in Nigeria.

If your website runs on WordPress, which many Nigerian business sites do, use a form plugin. WPForms is the easiest option for beginners: drag and drop fields, no code needed, and the free version handles simple contact forms well. Contact Form 7 is free and very popular, but it needs more manual setup and styling. Fluent Forms is a strong middle option with good spam protection built in. Whichever plugin you choose, install only one form plugin. Running two form plugins on the same site causes conflicts, and that is a common reason forms stop sending email.

If your website was built with a website builder such as Wix, Squarespace or Shopify, use the form that comes built into the platform. These built-in forms are already connected to the platform's email system, so they are the most reliable option for that site. Adding a third-party form on top usually creates more problems than it solves.

If your website is custom-built with Next.js, React or plain HTML, you will need a form handling service or a small backend. Formspree and Getform are simple services that accept form submissions and forward them to your email without you writing a backend. You add a few lines of code to your form, set the email address where messages should go, and the service handles delivery. For a business that wants full control, a developer can build a form that sends email through a service such as Resend, SendGrid or Amazon SES, which are built for reliable delivery at scale.

Whatever tool you choose, avoid one common trap: do not use a form that only saves messages inside your website dashboard and never emails you. You will forget to check the dashboard, messages will sit unread for days, and customers will think you ignored them. Your form must notify you by email, and ideally by WhatsApp as well, the moment someone submits it.

Step 3: Make Sure the Email Actually Arrives

This is where most Nigerian contact forms fail. The form looks fine, the customer clicks send, a success message appears — and the email never arrives. The reason is almost always the same: the website is sending email from an address that mail providers do not trust.

By default, many WordPress sites send email using the server's built-in mail function, with a sender address like wordpress@yourdomain.com.ng. Gmail, Yahoo and Zoho often treat these messages as spam, or reject them entirely, because the sending server has no proper authentication. The fix is to send your form emails through a proper email service using SMTP, the standard protocol for sending email.

The most reliable setup for a small Nigerian business is to connect your form to an SMTP service. If you use Zoho Mail, Gmail or Microsoft 365 for your business email, you can connect WordPress to that account using a plugin such as WP Mail SMTP. You enter your email address, your password or app password, and the SMTP settings for your provider, and the plugin sends all form emails through your real mailbox. This alone fixes most delivery problems.

For custom websites, use a transactional email service such as Resend, SendGrid, Brevo or Amazon SES. These services are designed to deliver form emails reliably, and most have a free tier that covers a small business easily. Resend, for example, offers a generous free tier and is simple to set up with a verified domain. SendGrid also has a free tier. The key step with any of these services is to verify your domain by adding the SPF, DKIM and DMARC records they give you to your domain's DNS settings. Without those records, your emails will still look suspicious to Gmail and other providers.

Always set the "From" address to an address on your own domain, such as info@yourbusiness.com.ng, and set the "Reply-To" address to the customer's email address. This is a subtle but important detail. If the "From" address is the customer's Gmail address, many mail providers will reject the message, because your server is not authorised to send email as Gmail. If the "From" address is your own domain and the "Reply-To" is the customer, you can simply click reply in your inbox and your answer goes straight to the customer.

Test delivery to more than one inbox. Send a test enquiry and check that it arrives in Gmail, in Zoho Mail, and in any other mailbox you use. Check the spam folder too. If the message lands in spam, your authentication records are probably missing or wrong, and you need to fix them before you tell customers the form is live. Do not assume it works because it worked once. Test it again after any change to your website, your hosting or your email settings.

Step 4: Stop Spam Without Blocking Real Customers

Every public contact form attracts spam. Bots will submit fake enquiries, links to scam websites, and nonsense messages. If you do nothing, your inbox will fill up and you may miss real customers among the junk. But if you add too much protection, real customers will give up. The goal is to block bots while keeping the form effortless for humans.

Start with a honeypot field. A honeypot is a hidden field that humans cannot see but bots fill in automatically. If the hidden field has a value when the form is submitted, the form knows it was a bot and discards the message silently. Most good form plugins, including WPForms, Fluent Forms and Contact Form 7 with an add-on, have a honeypot option you can turn on with one click. It adds no friction for real customers, and it blocks a large share of automated spam.

Next, add Google reCAPTCHA, but choose the right version. reCAPTCHA v3 works invisibly in the background and gives each submission a score based on how human the behaviour looks. It does not ask customers to click on traffic lights or type distorted letters. reCAPTCHA v2, the "I am not a robot" checkbox, is acceptable, but it adds a step and can be annoying on a phone. Avoid the image challenge version unless you have a serious spam problem, because many genuine customers will abandon the form rather than solve puzzles.

Consider Cloudflare Turnstile as an alternative. It is free, privacy-friendly, and often less intrusive than reCAPTCHA. Many Nigerian developers now prefer it for small business sites because it blocks bots without the Google branding or the image puzzles.

Do not require customers to create an account before they can contact you. Do not ask them to solve a maths question. Do not add a second confirmation step that emails them a link they must click before you receive their message. Each of these measures kills more real enquiries than spam. A honeypot plus invisible reCAPTCHA or Turnstile is enough for most businesses. If spam still gets through, add a simple question that a human in your market would know, such as a dropdown asking which service they need, rather than a puzzle.

Also, protect yourself from abuse. Limit how often one person can submit the form, for example one submission per minute from the same browser, and set a maximum message length. A message of a few thousand characters is enough for any genuine enquiry. A message of fifty thousand characters is almost certainly spam or an attack.

Step 5: Connect the Form to WhatsApp and Add a Good Success Message

Email alone is not enough in Nigeria, because many business owners check WhatsApp far more often than email. Connect your form to WhatsApp so every enquiry reaches you where you will actually see it.

The simplest way is to add a WhatsApp button next to the form, so customers who prefer chat can tap it instead. A better setup sends the form submission to your WhatsApp as well. Some WordPress plugins and form services can do this directly. Another reliable route is to use an automation tool such as Zapier or Make to watch for new form submissions and send you a WhatsApp or email notification. If that is too technical, at minimum set up an email alert on your phone with a loud notification, and check your inbox at fixed times each day.

What happens after a customer clicks send matters as much as the form itself. Replace the generic "Your message has been sent" with a clear success message that sets expectations: "Thank you, Ada. We have received your message and will reply on WhatsApp within 2 working hours, Monday to Saturday, 9am to 6pm." That tells the customer what happens next and when. Better still, redirect the customer to a thank-you page that repeats this message, shows your WhatsApp number, and offers a button to chat immediately. A customer who can start a WhatsApp chat straight from the thank-you page is far more likely to become a real conversation than one who is left staring at a small success notice.

Add an auto-reply email as well. When a customer submits the form, send them a short email confirming receipt: "Thank you for contacting us. We have received your enquiry and will reply shortly. For faster service, chat with us on WhatsApp at 0803 123 4567." This reassures the customer, gives them your WhatsApp number, and creates a record in their inbox. Keep the auto-reply short and human. Do not send a long marketing email to someone who only asked a simple question.

Step 6: Test the Form Like a Customer Would

Before you announce that your form is live, test it properly. Fill it in yourself on your phone, using mobile data, not office Wi-Fi. Fill it in on a second phone if you can, and ask a friend in a different part of Lagos or Abuja to fill it in too. Check that the success message appears, that the email arrives in your inbox within a minute, that the reply-to address is the test customer's address, and that the message is readable on a phone.

Test the failures as well. Submit the form with the phone number blank and confirm you get a clear error. Submit it with an invalid email and confirm it is rejected politely. Submit it twice quickly and confirm it does not send duplicate messages or crash. These edge cases are where real customers get stuck, and they are easy to miss if you only test the happy path.

Then test it again every month. Forms break silently when a plugin updates, a password changes, or a hosting provider changes a setting. Put a monthly reminder in your calendar: "Test contact form." One test message a month can save you from losing a month of enquiries without knowing.

Your Contact Form Checklist

Use this checklist before you call the form done: five fields or fewer, phone number labelled for WhatsApp, price or service dropdown included, emails sent through SMTP or a transactional service with SPF, DKIM and DMARC set up, From address on your own domain with Reply-To set to the customer, honeypot plus invisible spam protection turned on, a clear success message with reply time, a WhatsApp option next to the form, and a full test from a phone on mobile data. If any item is missing, fix it before you share the form.

A contact form is not a decoration on your website. It is the place where a stranger decides to trust you with their name and number. Make it short, make it fast on a Nigerian phone, make sure every message reaches you, and reply quickly. Do that, and your website will stop being a brochure and start being a source of real customers.

Get weekly tech insights

Join our newsletter for practical guides on web dev, AI tools, and digital marketing — sent every Monday.

No spam. Unsubscribe anytime.