Author: Koen de Jong
This is a simple GmailAPI bulk email sender. In short, it uses the GmailAPI to send emails to multiple recipients.
Edit the body.html file for the email. Any other files that are in the templates folder will be sent as attachments!
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
- Rename the
example_config.json
the fileconfig.json
in your project directory - Fill in the fields to your liking and remove the descriptive part.
Install the following tools with pip3:
- google-api-python-client
- google-auth-httplib2
- google-auth-oauthlib
- pickle
With a working configuration, you can run the tool with the following command:
python3 run.py
- Add support for importing CSV files with dynamic content