Sign in

How can I add a simple contact form?

  • This topic has 6 replies, 4 voices, and was last updated 9 months, 3 weeks ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6847
    Avatar photoCryss1

    Hello everyone,

     

    is there planned feature in this regard? My webhoster offers php, but I’m completely lost how to implement a solution. Tried all day without success.

    Thanks for any help.

     

    Chris

    #6849
    Avatar photoRJungwirth

    Hi Chris,

    i use php mailer. I have no privacy problems with it. It works fine and with the right settings you don’t get any spam. There are many good scripts for this on the internet. I can put mine together for you, but I won’t be able to do that until the beginning of this week.

    #6850
    Avatar photoCryss1

    Hi !

     

    Thanks for your response. That would be great. There are many, but I can’t estimate which one is good and many don’t have the option for spam protection (what is needed here/practical?)

    #6853
    Avatar photoRJungwirth

    Hi, oh, I just saw that I wrote a post about this over a year ago. Among them are also many other suggestions:

    https://forum.getpublii.com/topic/open-source-form-receiver-and-forwarder/#post-3964

    #6862
    Avatar photocandidexmedia

    I highly recommend checking out the post <span class=”bbp-author-name”>RJungwirth</span> shared. I personally really love FormSubmit because it’s unlimited, but there are a number of other options with free tiers, if you simply want to embed a static HTML form that POSTs info elsewhere: https://css-tricks.com/a-comparison-of-static-form-providers/

    I’ve been using FormSubmit because it sends the responses to your email, and they have an option to use a special code so that your email isn’t exposed in the code.

    Here’s what I’ve been doing:

    1. Create a new WYSIWYG post where the form will live (and , optionally, create a separate thank-you page)
    2. Edit the HTML of the post
    3. Paste in the code that’s in the link here: https://formsubmit.co/live-demo
    4. In this line, change the “you@email.com” for the email you would like to use (later, you’ll receive a code to replace this with so that you don’t have to use your email):
    <form target="_blank" action="https://formsubmit.co/your@email.com" method="POST">

    Once you’ve published your site to your server, fill out the form and hit send. You’ll receive instructions to get you started.

    Most of the other static options work like this. For FormSubmit, I would also recommend checking their documentation to see how to redirect submissions to a thank-you page using “_next”.

    #6864
    Avatar photoCryss1

    Thanks for the link!

    The thing is that I need something self hosted. No third parties involved. There are a lot of PHP code snippets I could use, but none I’ve found so far have a decent spam protection. I don’t think the method of a hidden field is enough and I couldn’t find a good solution with some self hosted captcha. I don’t understand PHP enough yet to do that. It seems there is no other way though as to get more into it.

    #6893
    Avatar photokieumanh2211

    Thank candidexmedia. This tutorial is very helpful for me 💚

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.