https://github.com/moverest/bulk-mail-sender
Send emails in bulk with a CSV listing and a email template.
https://github.com/moverest/bulk-mail-sender
Last synced: 5 months ago
JSON representation
Send emails in bulk with a CSV listing and a email template.
- Host: GitHub
- URL: https://github.com/moverest/bulk-mail-sender
- Owner: moverest
- License: mit
- Created: 2020-01-14T21:50:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-19T22:09:24.000Z (over 6 years ago)
- Last Synced: 2026-01-04T06:31:41.456Z (6 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bulk-mail-sender
Send personalized emails to a list of people.
The listing is defined in a CSV file like this one:
```csv
email,firstname,lastname,greeting
john.smith@example.com,John,Smith,Hi
jane.johnson@example.com,Jane,Johnson,Hello
```
You can then use the fields defined in the listing in a Mako template:
```html
${greeting} ${firstname},
Here is a message.
```
To send the emails, use the `bulk-mail-sender` command.
```bash
bulk-mail-sender template.html listing.csv \
--subject 'A message for you ${firstname}' \
--sender-name 'Clément Martinez'
```
You can use the `--dry-run` and `--verbose` option to preview the messages before sending them.
`bulk-mail-sender --help` for usage.
## Settings
The SMTP settings should be present in these environment variables:
- `SMTP_HOST`
- `SMTP_PORT`
- `SMTP_USERNAME`
- `SMTP_PASSWORD`
## Install
You can install this tool with `pip`:
```bash
pip install bulk-mail-sender
```