- Create and activate the virtual environment, e.g.
python3 -m venv venv
source venv/bin/activate
- Install the dependencies
python3 -m pip install -U pip
python3 -m pip install -r requirements.txt
Create the email address as a csv file. See example in 2023_participants_test.csv
.
- Run the
gen_certificates.py
script. You may need to adjust the file/filename containing the csv before running the script.
- First ensure the certificates have been generated.
- Get GMail OAuth credentials: https://developers.google.com/workspace/guides/configure-oauth-consent
- Download the
credentials.json
file and add to the same directory whereemail_sender.py
is located. - Run the script against a test email first, and verify the content, before sending a mass email.