Skip to main content

A tool to output .eml files, because we can't add OAuth applications to use SMTP.

Project description

A tool for spitting out .eml files from a template and a CSV file

Built for UNSW COMP6[48]41 tutors, because we don't get to use SMTP with Outlook, since we can't add OAuth applications.

Defaults are tailored to the COMP6[48]41 marking spreadsheet for 24T3.

Usage: class-email [OPTIONS] DATAFILE TEMPLATE SUBJECT

  Creates .eml files for each row in DATAFILE. The email body is generated
  from TEMPLATE, which is a Jinja2 template. Each email's subject will be
  SUBJECT.

Options:
  --filter TEXT            An allowed value for the column specified by
                           --filter-column. Not compatible with --filter-file.
  --filter-file FILENAME   A file with allowed values for the column specified
                           by --filter-column. Values should be separated by
                           newlines. Not compatible with --filter-file.
  --filter-column INTEGER  The column to filter on. First column is column 0.
                           Defaults to 0 when using --filter-file and 3 when
                           using --filter.
  --sender TEXT            If specified, the From header is added to .eml
                           files - useful if you have multiple sending
                           addresses configured in your email client.
  --email-column INTEGER   The column to use as the email address. First
                           column is column 0. Defaults to 4.
  --header-count INTEGER   Number of header rows. Defaults to 2.
  --outdir DIRECTORY       A directory where .eml files should be output to.
  --yes                    Auto-open all output email files without prompting.
  --no                     Skips the file open prompt without opening.
  --help                   Show this message and exit.

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

class_email-0.0.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

class_email-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file class_email-0.0.3.tar.gz.

File metadata

  • Download URL: class_email-0.0.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for class_email-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4862217669b4a0cd47cea9991d107ae9a95bf596be8610adfed29389af4b01d0
MD5 3ac357c10e077eb67411d6d58af35a59
BLAKE2b-256 df24d9d67d1f640eb1fa9cf6b6ddce2e280b250a927cfffcc81a9af7cfd44498

See more details on using hashes here.

File details

Details for the file class_email-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for class_email-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a7f01278a1d5fccdcf5f3a2220ce32eb1ceaa5610d36c0d14098549a40bde36
MD5 29ef8965c6df9c6cc4c794d4502c0997
BLAKE2b-256 591e2263fc881d81bf35bf0cbc9ece3f5a65e5a65fb785ce28ff307537291943

See more details on using hashes here.

Supported by

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