Skip to main content

Send emails in bulk with a CSV listing and a email template.

Project description

bulk-mail-sender

Send personalized emails to a list of people.

The listing is defined in a CSV file like this one:

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>
  <body>
    ${greeting} ${firstname},

    Here is a message.
  </body>
</html>

To send the emails, use the bulk-mail-sender command.

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:

pip install bulk-mail-sender

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bulk-mail-sender-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

bulk_mail_sender-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file bulk-mail-sender-0.1.1.tar.gz.

File metadata

  • Download URL: bulk-mail-sender-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for bulk-mail-sender-0.1.1.tar.gz
Algorithm Hash digest
SHA256 243ee2e6aabaee852525dbcdbc1a3c0257c67bcf71158a0a4a59fc434c847dd5
MD5 7fcacf9b9fe61ad3b92ad2d2e8b067d0
BLAKE2b-256 32603e7f94226843c44daea7230d5d4c98bcd22fffeb815c7944541519f4f6c1

See more details on using hashes here.

File details

Details for the file bulk_mail_sender-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bulk_mail_sender-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for bulk_mail_sender-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7047d51a6e5c1fe142df9abe80c61e2d8366ade0028e1bfc4a61d5aea0871d92
MD5 53d6266698155901986a776abffd22f5
BLAKE2b-256 093160afe87ff3e73390c4be30e61c7d2c4f7070b3b3520e6c94d5e983866abc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page