I have hosted a single static HTML page using GitHub Pages. I need to add a "Send Feedback" feature to my static page where a user can type in his name, email, comments and click the SUBMIT button. This will send an email with the contents to my email address. Can this somehow work in a static HTML page on GitHub? Does GitHub Pages support this mailing feature?
I also want to know what features/plugins etc can GitHub Pages server support based on the underlying web server it uses?
Yes it can, there are many apps around the web that allows you to send emails from you static HTML with a couple of javascript lines.
GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website. You can see examples of GitHub Pages sites in the GitHub Pages examples collection.
You can only deploy static sites on github pages. You can't deploy a server on github pages.
This cannot be done natively on GitHub pages. You will need to use some kind of form submission tool.
GitHub's pages documentation describes what you can and cannot do with the hosting, and what plugins it supports.
Yes it can be done this way with the help of Formspree.
Formspree
http://formspree.io/
HTML forms Just send your form to our URL and we'll forward it to your email. No PHP, Javascript or sign up required — perfect for static sites!You just need to open your text editor, and paste the following code:
<form action="http://formspree.io/[email protected]"><input type="email" name="_replyto"><textarea name="body"></textarea><input type="submit" value="Send"></form>
That's it, your form already works! It will post the form onto an external domain, formspree.io, and send you an email with all the form content. No database. And you can just hit reply in your mailbox to continue the conversation with your visitor.
This tool was built by the guys from Brace, then open-sourced and hosted by Assembly.
Setting it up is easy and free. Here's how:
You don't even have to register.
- Setup the HTML form
Change your form's action-attribute to this and replace [email protected] with your own email.
http://formspree.io/[email protected]
- Submit the form and confirm your email address
Go to your website and submit the form once. This will send you an email asking to confirm your email address, so that no one can start sending you spam from random websites.
- All set, receive emails
From now on, when someone submits that form, we'll forward you the data as email.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With