3

I have used github for hosting my website. My contact form is in html and php, but as github does not support php. How to make this form work?

DavidG
  • 24,279
  • 14
  • 89
  • 82
Rebeca P
  • 65
  • 1
  • 4
  • 2
    Welcome to Stack Overflow! Please note that [we are not customer support for your favorite company](//meta.stackoverflow.com/questions/255745/why-were-not-customer-support-for-your-favorite-company). As you note, GitHub does not support PHP for GitHub Pages; this isn't something we can help you with, since only GitHub can control what they support. – Scott Weldon Jul 27 '16 at 19:00
  • 3
    @ScottWeldon, is it a positive way to encourage @rebeca-p to use stackoverflow ? I don't think so. We are somewhere a customer support. We are here to help people, not to close the doors. I've removed `git` tag and I'm sure you can remove your nonconstructive comment as well as (I guess) your downvote. – David Jacquel Jul 27 '16 at 20:44
  • Hello guys, thanks a lot!!! Thanks @David .I ask my apologizes, my question was a "open question" and no specific.In fact github is a static site.Can I use webhooks or anyone API or remote JS(using an external server) to send emails?Please, Let me know if there is a better way(clean) to integrate email to my web site. Thanks again for your patient. Rebeca – Rebeca P Aug 01 '16 at 14:46
  • Hi Rebeca. Are you talking about contact form or is it a new question, specific to emails ? – David Jacquel Aug 01 '16 at 15:27
  • Hello, yes , David, my contact form just is ready,no problem. This question is specific to integrate in my website, if possible, either an api or remote js to send email, considering github is for static site ,only .Thanks. – Rebeca P Aug 01 '16 at 16:23
  • 1
    Possible duplicate of [Send email from static page hosted on GitHub Pages](http://stackoverflow.com/questions/24348223/send-email-from-static-page-hosted-on-github-pages) – Damjan Pavlica Feb 03 '17 at 12:40

1 Answers1

7

Github Pages only supports static sites and does not support server-side languages.

To make a form, you could you a third party service such as kontactr, formspree, or enformed

StephenG
  • 2,851
  • 1
  • 16
  • 36
  • 1
    You can use https://formspree.io/ contact form service service. – David Jacquel Jul 27 '16 at 20:34
  • 3
    Check out www.enformed.io. Has a couple of interesting options that formspree does not have( Like redirect out of the box, and a html email editor). – Ivangrx Sep 05 '16 at 14:55
  • I saw that enformed is pretty straight forward but I am concerned about seciurity. Is there any concern regarding the TOKEN that is in plain view in the HTML file? – Tony Oct 22 '20 at 12:28