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.4.tar.gz (9.0 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.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for class_email-0.0.4.tar.gz
Algorithm Hash digest
SHA256 84924a1ab17f6e3d8b6936538c88d0edafed278a1fe20c6b97a8179210f46a40
MD5 5308e91b92430c6234c25fd7c013ec92
BLAKE2b-256 ceee888433b20d9b080fa59fbabb8b4018d573fe85473fe9bf0cf6a1be6a3482

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for class_email-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5abf6d8acac595e8478eaf2b1599c2b300b91b1fda173bbb8817bfc7f73c80d9
MD5 8ae32cf73c78c07a9b467b7c8f2403fc
BLAKE2b-256 e42622c1c4a53e1dc39ad19047f49fd7b50b6251dcf6b180bec66689d62f196e

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