Skip to main content

Send mails with yaml

Project description

Send (test) mails with YAML.

Installation

pip install .

Usage

spool --help

Example configuration file:

---
# mails.yml

# Optional defaults for keys mails.
defaults:
  sender: foo@example.com
  recipents: Bar <bar@example.com>, baz@example.com

# Optional variables which can be used below.
vars:
  message: |
    Hello world,

    Foo bar baz ...

    Kind regards,
    Foo

# Mails to send.
mails:
  - name: Test Mail
    description: Hello world test mail
    headers:
      X-Mailer: Spool Mailer
    text_body: '{{ message }}'

Generate mail(s):

spool example/simple.yml

For further examples visit the documentation.

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

spool-0.8.0.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

spool-0.8.0-py3-none-any.whl (8.3 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