Quickstart contact form processing for static sites

This project is maintained by samdobson

Quickstart contact form processing

This will be useful if...


Register your email:

    $ curl --data "email=<your_email>" https://fwdform.herokuapp.com/register
    Token: 780a8c9b-dc2d-4258-83af-4deefe446dee

Test (optional):

    $ curl --data "email=person@form.com&name=person&message=hello" \

Put into action:

<form action="https://fwdform.herokuapp.com/user/<token>">
  Email: <input type="text" name="name"><br>
  Name: <input type="text" name="email"><br>
  Message: <textarea name="message" cols="40" rows="5"></textarea>
  <input type="submit" value="Send Message">

NB: Required parameters are: email, name and message. Other parameters will be ignored.

Privacy concerns?

Spin up your own free Heroku instance. A Mandrill account required for email delivery.

    $ git clone https://github.com/samdobson/fwdform.git
    $ heroku create
    $ heroku config:set MANDRILL_API_KEY=<KEY>
    $ heroku addons:add heroku-postgresql:dev
    $ heroku pg:promote HEROKU_POSTGRESQL_COLOR
    $ heroku ps:scale web=1