Skip to main content

Basic mailing tool.

Project description

mailz

CI Status CD Status Test Coverage PyPI Project

Basic mailing tool.

Installation

With pip:

pip install mailz

Shell completion installation

Depending on your shell:

  • For Bash:

    _MAILZ_COMPLETE=source_bash mailz > deckz-complete.sh
    
  • For Zsh:

    _MAILZ_COMPLETE=source_zsh mailz > deckz-complete.sh
    
  • For Fish:

    _MAILZ_COMPLETE=source_fish mailz > deckz-complete.sh
    

And then source/activate the resulting file in your shell config.

Directory Structure

mailz works with assumptions on the directory structure of your mailing directory. Among those assumptions:

  • your directory should be a git repository
  • it should contain jinja2 mail templates in the templates/jinja2 directory
  • it should contain YAML templates in the templates/yml directory, with specific names (listed below)
  • a user-config.yml file should exist in the mailz config dir (depends on platform, on GNU/Linux it'll commonly be $HOME/.config/mailz), containing your sendgrid credentials and sending email
root (git repository)
├── templates
│   ├── jinja2
│   │   ├── signup.txt
│   │   └── event.txt
│   └── yml
│       ├── mailing-config.yml
│       └── user-config.yml
└── mailing-signup-september.yml

Usage

See the --help flag of the mailz command line tool.

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

mailz-1.0.0.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

mailz-1.0.0-py3-none-any.whl (12.6 kB view hashes)

Uploaded Python 3

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