Created by: Koen de Jong
This is an email handler that can be used by other programs to send emails.
Authentication is done using API keys, that can be generated by the user using src/api_key_generator
.
Install the following tools with pip3:
- google-api-python-client
- google-auth-httplib2
- google-auth-oauthlib
- Flask
- flask-cors
- honeybadger
Before being able to use this tool, you need to have a Gmail or Google Suite account. You can create one by following the instructions:
- Go to the API Developer Console
- Create a new project
- Go to credentials and create new OAuth client credentials
- Download the JSON file and save it to your project directory as
credentials.json
You can generate an API key by following the instructions:
- Go to the Honeybadger
- Sign in or create an account.
- Create a project and copy the API key to the clipboard.
- Rename the
example_config.json
the fileconfig.json
in your project directory - Fill in the fields to your liking and remove the descriptive part.
With a working configuration, you can run python with the following argument: run.py
This can be done in the terminal in any of the following options, depending on your setup:
python run.py
python3 run.py
source venv/bin/activate
python run.py
To run docker, you need to create the image yourself with the credentials, config and token.pickle all setup correctly. Map container port 80 to a port of your liking and your good to go!