Create a contact form with jekyll
jekyll blog is static, we have to rely some some kind of service endpoint to send email to our mailbox. Good thing is that there are plenty of services for this purpose:
heroku for free hosting and
mailjet for sending email. Pick one of your choice.
I did a quick search before firing up
Sublime Text to create a simple app for sending email and luckily, someone already wrote one. One less thing to do :)
Create Heroku and a Mandrill account
Sign up an account at Heroku. Download and install
heroku toolbelt while you’re at it.
For sending email, you can go with Mandrill, Mailgun or Mailjet. They all come with free plan which is more than enough for personal use. If you pick something other than Mandrill, you will have to edit the app a bit use their own libraries. If you’re lazy, just go with Mandrill.
Install the app on heroku
Create contact form on your website
Create a page with simple form like below. I’m using Bootstrap for my blog so styling is just a matter of adding a couple of CSS classes.
Adding reCAPTCHA (optional)
Sign up for an API key pair and add it to your page. I don’t have a need for this, personally.
Here what’s mine like