Free contact form
A self-hosted PHP contact form that sends messages from your website straight to your inbox. It has no database, no account and no monthly fee, and it makes no calls to third-party services.
- PHP 8.2 or newer
- PHPMailer (SMTP or PHP mail)
- No database
- Version 2026.2
This demo is for trying the form only. Nothing is sent: when everything's filled in correctly, it shows the thank-you message. Leave fields empty or enter an invalid email address to see the validation. Once you install the form on your own site, messages go to your email address.
Features
- Messages sent to your inbox by email, to one or more addresses, with CC and BCC
- The visitor's subject becomes your email's subject, so you can sort messages at a glance
- SMTP through PHPMailer, including services such as SendGrid and Mailjet
- Spam protection with no CAPTCHA: spam trap, timing check, and per-visitor and whole-website limits
- Checked in the browser as visitors type, and again on the server
- Change it in the free form builder, with a live preview
- Light or dark colours, or following the visitor's device
- Messages to visitors in English, French, German, Spanish or Dutch
- Built-in self-test page to check your server and email settings
- Your settings kept in their own file, so upgrading is easy
- Full source code, with every file explained
How to use
- Download and unzip the files.
- Add your email address and SMTP details to
fcf-config/fcf.settings.php. - Add the form to your contact page and upload the files.
- Send a test message to make sure it arrives.
About the free contact form
The form lets your visitors send you a message from your website. Each message is checked, then emailed to you. Messages aren't saved on your server or sent anywhere except your inbox.
It's a good fit if your site runs on ordinary PHP hosting and you don't want WordPress, a form-building service or another subscription just to receive messages.
What's new in 2026.2
- A free form builder. Make your own form in your browser: add and arrange fields, choose colours, and see the form and the email you'll receive as you go.
- A subject field. It becomes the subject of the email you receive, for example "Contact form: Opening hours". Name and email, and subject and phone, sit side by side, and stack on phones.
- Clearer error messages, shown under each field as visitors go and read out by screen readers, with no JavaScript library to load.
- Light or dark colours, or following the visitor's device.
- French, German, Spanish and Dutch as well as English.
- Messages to different addresses by the answer to a dropdown, for example sales questions to sales@.
- Four more ready-made forms: support request, feedback, newsletter signup and RSVP.
Upgrading from 2026.1? Replace the fcf-assets folder and open the self-test page. It makes your two new settings files from your old fcf.config.php, so there's nothing to copy by hand.
The installation guide has the steps. A form that's already running keeps its own fields.
Is it really free?
Yes. You can use it on personal and commercial websites at no cost.
There are two conditions:
- The form shows a small "Contact form by FreeContactForm" credit, which must stay visible on the same page as the form. You can place it on the left, in the centre or on the right.
- The form can't be used on websites with explicit, illegal or hateful content. If you're not sure whether your site qualifies, get in touch.
You can use it on websites you build for clients too. The licence explains it in plain English, including how to remove the credit.
Spam protection
Spam is blocked on your server, with no CAPTCHA puzzle for your visitors to solve and no third-party script to load.
- Spam trap: a hidden field that people never see but bots tend to fill in.
- Timing check: forms sent within a couple of seconds of the page loading are rejected, because bots are faster than people.
- Per-visitor limit: stops one visitor sending a flood of messages.
- Whole-website limit: keeps you under your host's hourly email limit, so a burst of spam can't get your email switched off.
All the limits can be changed or switched off. These checks stop typical bots without getting in the way of real visitors. If your site is behind Cloudflare, set one option so each visitor is counted separately.
See how the form protects your website, and read the script that sends every message.
Email delivery
Messages are sent with PHPMailer. We recommend SMTP with an email account on your own domain, which is much less likely to end up in spam. Any SMTP service, such as SendGrid or Mailjet, also works. PHP's built-in mail function is available as a fallback. See the SMTP settings guide for help with your hosting provider.
Each email you receive has its reply-to address set to the visitor, so you can just press Reply. The subject line starts with "Contact form:" followed by the visitor's subject. HTML and plain-text templates are included, and the form builder shows you the email before you download.
Want different topics to go to different people? Add a "What is it about?" dropdown, and list an address for each answer in your settings file. See sending messages to different addresses.
Form validation
Fields are checked in the browser as visitors type, then checked again in PHP on the server, so the server never relies on the browser alone. Any field that isn't in your form file is ignored, so nobody can sneak extra data into your emails.
By default:
- Name: required, up to 60 characters
- Email: required, must be a valid email address, up to 100 characters
- Subject: required, up to 100 characters
- Phone: optional, up to 30 characters
- Message: required, 10 to 3,000 characters
Optional fields are marked "(optional)", in the form's language. In the form builder you can mark required fields with a star instead, both, or neither.
Make it yours
The easiest way to change the form is the form builder. Start from this contact form or a blank one, add fields such as a website address or a "What is it about?" dropdown, change the wording, and pick your colours. Download it as a full install, or just the form's 5 files to upload over a form you've already installed. Your settings file isn't one of them, so your email settings stay as they are.
Or start from one of the ready-made forms below, such as quote request, appointment request or support request.
Styling and languages
The form uses its own stylesheet, so it won't clash with your site's CSS. Its colours, corners, font and width are a short list of values in fcf-config/css/fcf.custom.css, which the form builder writes for you.
The messages visitors see come in English, French, German, Spanish and Dutch, and you can add your own translation.
Privacy
The form doesn't use a database, tracking or outside services. Messages are sent from your server to your email address and aren't saved anywhere else.
Visitors' IP addresses are used briefly to limit repeated messages, then deleted automatically. They aren't included in the emails you receive unless you add {IP} to your email templates.
The form builder runs in your browser and keeps your forms there. It never asks for your email address or server details.
Download and setup
Download and unzip the files, add your email address and SMTP details to fcf-config/fcf.settings.php, then upload everything to your website.
Your server must run PHP 8.2 or newer.
For step-by-step instructions, see the free contact form installation guide.
Free Download (release 2026.2)
Want to check before you install? See what's in the download, the changelog, or the file checksums on the downloads page.
If messages aren't arriving, read the help page first. Most problems are caused by email settings, and the built-in self-test page will usually show you which one.
All the free forms
Built on the same engine, with the same spam protection and setup. Pick the one that fits the job.
Free contact form (this page)
Name, email, subject, phone and message. The simple, all-purpose form.
Download this formFree quote request form
Service, budget, timescale and job details, so you can price the work.
Demo and downloadFree appointment request form
Service, preferred date and time of day, for anyone who takes bookings.
Demo and downloadFree callback request form
Just a name, phone number and the best time to call. Quick on a phone.
Demo and downloadFree support request form
Order or account number, how urgent it is and what happened, so you can help first time.
Demo and downloadFree feedback form
A quick rating and comments. Name and email are optional, so people can stay anonymous.
Demo and downloadFree newsletter signup form
First name, email and topics, with a clear consent tick box. Signups come to your inbox.
Demo and downloadFree RSVP form
Who's coming, how many, and any dietary needs, for parties, weddings and events.
Demo and download