If you have static websites, such as GitLab Pages or GitHub Pages just like us, and just like to use a contact form, this opensoure project with a self hosted backend might be a good choice. Virtual servers are usually cheaper than contact form services. Most services just don not have enough options on the free tier and are quite expensive on a basic paid plan. If you like self hosted forms with data management, take a look on Form Tools. This project takes just a different approach..
This project offers a solution to forward a message from a static page to an email, with features like form validation, captcha and file upload but with just a minimal backend, not a full blown CMS system. This website demonstrates just how easy it is to make a contact form that sends a jQuery call to a self hosted PHP 8 backend. And to make it just easier for you, we provide the whole ansible setup for debian/ubuntu.
The backend uses PHP 8 to accept the data from the frontend. It uses composer to manage dependencies and is unit-tested. We provide a docker-compose file with nginx and php:7-fpm (image update to php:8-fpm planned) to get started quickly.
There are many ideas to improve this solution: send form to an instant messenger or Elastic Search, provide localisation and accessibility. Both, this frontend, and the backend are open source. If you like to contribute, make a GitLab pull request or just use the contact form below ;-)
Responsible for the content of this webpage is:
Adam Furmanczuk