GithubHelp home page GithubHelp logo

exexzian / fwdform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samdobson/fwdform

0.0 2.0 0.0 245 KB

Quickstart contact form processing for static sites

License: MIT License

Python 86.24% HTML 13.76%

fwdform's Introduction

Quickstart contact form processing

This will be useful if...

  • You want to forward a simple contact form to your email
  • You have a (S3) static site and don't want to run a server

Usage

Register your email:

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

Test (optional):

    $ curl --data "[email protected]&name=person&message=hello" \
           https://fwdform.herokuapp.com/user/<token>

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">
</form> 

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

Deploy the application to your Heroku instance.

    $ git push heroku master

Create the database.

    $ heroku run python
    >>> from app import db
    >>> db.create_all()
    >>> exit()

fwdform's People

Contributors

samdobson avatar benjamin-dobell avatar alotaiba avatar nobane avatar

Watchers

James Cloos avatar exex zian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.