Super simple contact submission form app
I built this app for my personal website, and there isn't much to it, but it does send through the Gmail API and enforces recaptcha. Let me know if this is useful to you. Thanks!
On the google developers console (https://console.developers.google.com):
- Enable the Gmail API
- Add an OAuth2 client with an application type of 'Other'
- Click the 'Download JSON' button
- Rename the file 'client_secret.json' and add it to your project
- On your local machine (somewhere that can load a web page), run:
python authorize.py
- Setup recaptcha through https://www.google.com/recaptcha/. Make note of your key and secret
- Update 'config.json' with your information, including recaptcha secret
- Setup virtualenv and install dependencies:
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
- Run the app
python app.py
- Deploy!