This Python-based project allows you to generate Gmail drafts in bulk using data from a CSV file. It leverages the Gmail API and supports email attachments.
The main features of this tool:
- Uses Google Gmail API to access your Gmail account.
- Reads a list of emails and content from a CSV file.
- Automatically creates a draft email for each row in the CSV.
- Supports file attachments.
- Handy for sending personalized emails in bulk or preparing them ahead of time.
To run this project, you need to set up a Gmail API project in Google Cloud Console.
- Go to Google Cloud Console.
- Create a new project.
- Enable the Gmail API for your project.
- Configure OAuth 2.0 consent screen and download the credentials (
credentials.json
file). - Place the
credentials.json
file in the root of your project.
This project uses a few Google API libraries. You can install them using pip:
pip install --upgrade google-api-python-client google-auth google-auth-oauthlib google-auth-httplib2