Skip to content

koenjdejong/Bulk-Email-GmailAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulk Email-Sender GmailAPI


Author: Koen de Jong


Description

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!

Usage

Google API Credentials

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:

  1. Go to the API Developer Console
  2. Create a new project
  3. Go to credentials and create new OAuth client credentials
  4. Download the JSON file and save it to your project directory

Configuration

  1. Rename the example_config.json the file config.json in your project directory
  2. Fill in the fields to your liking and remove the descriptive part.

Requirements

Install the following tools with pip3:

  1. google-api-python-client
  2. google-auth-httplib2
  3. google-auth-oauthlib
  4. pickle

Running

With a working configuration, you can run the tool with the following command: python3 run.py

Requirements

TODO

  • Add support for importing CSV files with dynamic content

About

Send bulk emails with python and the Gmail API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published