Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Open source form receiver and forwarder for static website

  • #1269
    Avatar photo[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

    #1274
    Avatar photo[anonymous]

    Formspree is open source, you can run your own instance on Heroku

    https://github.com/formspree/formspree

    #1276
    Avatar photo[anonymous]
    #1277
    Avatar photo[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

    #1280
    Avatar photo[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!

    #1285
    Avatar photo[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.

    #1291
    Avatar photo[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!

    #1293
    Avatar photo[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.

    #1294
    Avatar photo[anonymous]

    @Verhoeckx

    @Bert

    Please keep us updated on this topic, if possible 🙂

    Thanks

    #1295
    Avatar photo[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!

    #1304
    Avatar photo[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”

    #1343
    Avatar photo[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.

    #1281
    Avatar photo[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 😳

    #1377
    Avatar photo[anonymous]

    Yes, you sent me that list earlier.

    I’m going to think about what I’m going to use.

    #1378
    Avatar photo[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.

    #1383
    Avatar photo[anonymous]

    No problem 🙂 !

    #1452
    Avatar photo[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.

    #1455
    Avatar photo[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.

    #1456
    Avatar photoBob

    Here 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.

    #1458
    Avatar photo[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

    #1758
    Avatar photo[anonymous]

     I was looking for a server side script (for example written in PHP).

    @Verhoeckxo You may enjoy Formtools then.

    #1763
    Avatar photo[anonymous]

    Hi Marc_io, thanks for the link but I think I’m going to use Google Forms.

    #1854
    Avatar photo[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.

    #1868
    Avatar photo[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

    #2174
    Avatar photo[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

    #2183
    Avatar photo[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. 😉

    #2184
    Avatar photo[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

    #2187
    Avatar photo[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

    #3964
    Avatar photo[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 text

    Look 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.

    #3966
    Avatar photo[anonymous]
    [anonymous] wrote:

    RJungwirth

    Thank you 🙂

    #3967
    Avatar photo[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.

    #6494
    Avatar photo[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.

    #8450
    Avatar photo[anonymous]
    #8476
    Avatar photo[anonymous]

    Check out this publii forms  backend.

    #8478
    Avatar photo[anonymous]
    [anonymous] wrote:

    Check out this publii forms backend.

    Please don’t use this form to promote certain products.