Open source form receiver and forwarder for static website
-
January 15, 2020 at 7:23 pm #1269[anonymous]
Hello Publii developers,
Because Publii is a static website generator it can’t process any forms.
Does anybody know a good open source project that can receiver the information send in the form and forward that content to an e-mail address?
In other words I’m looking for an open source alternative to projects like Formspree and/or Simple Form.
Regards,
Verhoeckx
January 15, 2020 at 7:33 pm #1274[anonymous]Formspree is open source, you can run your own instance on Heroku
January 15, 2020 at 7:35 pm #1276[anonymous]January 15, 2020 at 8:19 pm #1277[anonymous]Hello Ajeet,
Thanks you for your comments!
The problem with Formspree is that it has a lot of dependencies (SendGrid, PostgreSQL, Redis, Python 2.7, etc) and that it’s no longer developed as an open source project.
The list of Formspree alternatives is long but contains a lot of project that are far to complex for what I want to achieve.
Regards,
Verhoeckx
January 15, 2020 at 10:48 pm #1280[anonymous]That’s a very interesting question, @Verhoekx.
For years I’ve been using Allforms/Mailjol and it has proved to be reliable for contact forms, testimonial form and (very) simple order forms.
However it seems its makers abandoned the project. They no longer reply to questions in the forum and no longer collect money for the pro version ($ 10,-/year I believe). But the strange thing is: it keeps working flawlessly and reliably. Someone is clearly looking after Allforms. Over several years I have had zero problems with this service.
But as the situation is, no one knows Allforms’ intention. They obviously look after the service, but could also suddenly pull the plug.
So I too have been looking for alternatives, but nothing seems what we are looking for. Most Formspree alternatives have the “Freemium” model, which is easy to truly hate 😉
So I’m glad you brought this up. Let’s find a form handling service that is perfect for all Publiiists!
January 16, 2020 at 1:45 pm #1285[anonymous][anonymous] the closest that I have found yet is TellForm and it’s successor OhMyForm. And with a quick search I also found this: SurveyJS. Maybe that’s something (I haven’t really looked into it yet)?
Let me know if you find another program that might be interesting!
I don’t need it right know but I maybe need it in the (near) future.
January 16, 2020 at 4:13 pm #1291[anonymous]Thanks for your ideas @Verhoeckx.
OhMyForm looks like a good candidate, worth considering.
You probably know this list: https://alternativeto.net/software/formspree-io/
Of those, FormSubmit, AirForm, Simple Form and Severless Form are candidates, imho.
There’s also SmtpJS that looks really interesting. I don’t know enough about smtp, so cannot judge.
Let’s find a good solution!
January 16, 2020 at 5:07 pm #1293[anonymous]FormSubmit: not open source.
AirForm: needs a JavaScript framework on the server.
Simple Form: needs Ruby on Rails on the server.
Serverless Forms: also needs a JavaScript framework on the server.I’m looking for something in PHP so that’s easy to install.
January 16, 2020 at 5:08 pm #1294[anonymous]January 16, 2020 at 5:13 pm #1295[anonymous]Personally I’m not in a hurry. I first have to learn how to work with Publii first (especially how to create my own theme/template)! But when I have the time I will keep on searching!
January 17, 2020 at 7:42 pm #1304[anonymous][anonymous] wrote:FormSubmit: not open source.
AirForm: needs a JavaScript framework on the server.
Simple Form: needs Ruby on Rails on the server.
Serverless Forms: also needs a JavaScript framework on the server.
I’m looking for something in PHP so that’s easy to install.
I think we are talking about two different things. OhMyForm is primarily a formbuilder (that is not php) and not so simple to implement and it has to be installed on your own server.
The ones I mentioned are web services developed for people running static pages, for the servers those pages use do not have dynamic components like php. (and that’s why those static pages are so fast and secure)
FormSubmit: “Connect your form to FormSubmit endpoint and we’ll email you the submissions. No PHP, Javascript or sign up required.”
Airform: “What if you could use a service that gives you full control over the form, yet doesn’t require you to use anything on your server? Airform gives you the ability to create functional HTML forms without thinking about servers.”
Serverless Forms: “ServerlessForms is hosted in cloud and managed by us so that you don’t need to worry about form data management. Just focus on your website design and content. We will take care of your form submits”
January 20, 2020 at 6:24 pm #1343[anonymous][anonymous]
First: nice avatar :-)!
The problem with third party services is that you have to trust them that they don’t do anything with the information of in the e-mails. Maybe they don’t but you don’t know. On most web hosting services PHP is already installed and so I was looking for a simple simple solution that turns form data into e-mails. Of course I could write that myself but I want to do as little as possible.
January 21, 2020 at 6:04 am #1281[anonymous]@Verhoekx,
You probably know this list: https://alternativeto.net/software/formspree-io/
Not too long ago I went thru it and made notes, but lost those, due to having no backup 😳
January 21, 2020 at 10:27 am #1377[anonymous]Yes, you sent me that list earlier.
I’m going to think about what I’m going to use.
January 21, 2020 at 10:34 am #1378[anonymous]I did not post this today. It was one of the messages I tried to post earlier, but it was refused by the forum software.
So, apologies for sending you the same stuff twice… it was not my intention.
January 21, 2020 at 10:58 am #1383[anonymous]No problem 🙂 !
January 22, 2020 at 9:09 pm #1452[anonymous]Hi,
I use with satisfaction “just validate” https://github.com/horprogs/Just-validate.
- Lightweight (~ 4,5kb gzip) form validation in Javascript Vanilla
- Client-side validation with custom error messages
- Ajax helper that I use with mail() php
I use it on my Publii site (http://www.mywebpassion.it) and on some sites developed for my clients.
January 23, 2020 at 2:45 pm #1455[anonymous]gpsblues:
Thanks for the suggestion but I was looking for a server side script (for example written in PHP). Of course I could write it myself but that’s tedious.
January 23, 2020 at 3:13 pm #1456BobHere you go: https://kursjs.pl/kurs/formularze/formularz-kontaktowy.php ; nice tutorial, admittedly in Polish but you can download the script and play with that.
January 23, 2020 at 3:23 pm #1458[anonymous]Hello Bob,
Thank you very much!! I will use Google Translate to translate the webpage!
For every website that I made with Publii I will donate some money.Best wishes,
Verhoeckx
February 18, 2020 at 1:53 am #1758[anonymous]I was looking for a server side script (for example written in PHP).
@Verhoeckxo You may enjoy Formtools then.
February 18, 2020 at 10:28 am #1763[anonymous]Hi Marc_io, thanks for the link but I think I’m going to use Google Forms.
February 25, 2020 at 11:30 pm #1854[anonymous]marc_io wrote:I was looking for a server side script (for example written in PHP).
@Verhoeckxo You may enjoy Formtools then.
Here’s a PHP forms processor that I have used on a Publii website:
https://www.willmaster.com/library/manage-forms/php-form-processor-for-simple-and-complex-forms.php
Hope that helps.
February 26, 2020 at 10:09 pm #1868[anonymous]Hello Itips3727,
Thank you very much for that page!! I think it’s exactly what I needed/wanted!!
I will try it out (next week or so)!
Thanks for thinking along!
Verhoeckx
March 23, 2020 at 5:41 pm #2174[anonymous]Hi Itips3727,
Thanks for sending me the above script but I have the idea that the script is not safe because it doesn’t test for Cross Site Scripting (XSS).
Verhoeckx
March 23, 2020 at 8:18 pm #2183[anonymous][anonymous] wrote:Hi Itips3727,
Thanks for sending me the above script but I have the idea that the script is not safe because it doesn’t test for Cross Site Scripting (XSS).
Verhoeckx
Hi @Verhoeckx,
Try adding XSS protection into your .htaccess file.
For example:
## Reflected XSS protection <IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" </IfModule>
Hope that works for you. 😉
March 23, 2020 at 10:06 pm #2184[anonymous]Hi Itips3727,
Oh, I didn’t know that Apache could do that!
Is this solution good enough to prevent all kind of XSS-attacks?Verhoeckx
March 23, 2020 at 10:19 pm #2187[anonymous][anonymous] wrote:Hi Itips3727,
Oh, I didn’t know that Apache could do that!
Is this solution good enough to prevent all kind of XSS-attacks?
Verhoeckx
Here’s a fuller explanation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
October 5, 2020 at 11:07 am #3964[anonymous]Hello everybody,
I was also looking for a forms service. The DSGVO / data protection makes an external integration difficult.
Every hosting, no matter how small, nowadays includes php.
Therefore I have built a system from the Internet from different code snippets with client and server-side spam protection:Client side: Honeypot, waiting for keyboard and mouse input
Server-side: comparison of the domain, valid e-mail address, no URL in the textLook at:
https://codepen.io/ReiniJ/pen/jOqrPqz
The code now consists of
– HTLM and Javascript code (both in the contact post)
– php-mailer as mailing basis (https://github.com/msoftware/PHPMailer/)
– php configuration file (mailconfig.php) in the web subdirectory /E_Mail_Code/
– php-contact file (conact.php) in the web subdirectory /E_Mail_Code/Unfortunately, some of the scripts have been translated by me into German.
Overall, a good contact form is more difficult than I thought. Especially if you want to comply with data protection and do not want to receive spam. For me the solution now works very well.
October 5, 2020 at 2:34 pm #3966[anonymous][anonymous] wrote:RJungwirth
Thank you 🙂
October 5, 2020 at 6:06 pm #3967[anonymous]For the last few websites that I built, I used Vue Formulate for the front end and Form Tools for the back-end.
I installed Vue Formulate manually and Form Tools with the Installatron of DirectAdmin (a web hosting control panel).
This structure works very well for me.
October 25, 2021 at 11:25 pm #6494[anonymous]Came here to say thank you to those who contributed to this thread. I am loving FormSubmit and Airform. They work perfectly for my site.
September 30, 2022 at 1:39 am #8450[anonymous]You can read this about how to create a static website with contact form on github pages
October 4, 2022 at 10:40 am #8476[anonymous]Check out this publii forms backend.
October 4, 2022 at 11:13 am #8478[anonymous][anonymous] wrote:Check out this publii forms backend.
Please don’t use this form to promote certain products.