bulk-mail-sender-0.1.1
توضیحات
Send emails in bulk with a CSV listing and a email template.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bulk-mail-sender-0.1.1 |
| نام | bulk-mail-sender |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Clément Martinez |
| ایمیل نویسنده | clementmartinezdev@gmail.com |
| آدرس صفحه اصلی | https://github.com/moverest/bulk-mail-sender |
| آدرس اینترنتی | https://pypi.org/project/bulk-mail-sender/ |
| مجوز | - |
# 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
<html>
<body>
${greeting} ${firstname},
Here is a message.
</body>
</html>
```
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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
| - | mako |
نحوه نصب
نصب پکیج whl bulk-mail-sender-0.1.1:
pip install bulk-mail-sender-0.1.1.whl
نصب پکیج tar.gz bulk-mail-sender-0.1.1:
pip install bulk-mail-sender-0.1.1.tar.gz