Skip to main content

Send mails with yaml

Project description

Spool allows you to generate test mails specified in 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.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

spool-0.8.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file spool-0.8.1.tar.gz.

File metadata

  • Download URL: spool-0.8.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for spool-0.8.1.tar.gz
Algorithm Hash digest
SHA256 78dd67f59a10bd63821ff0fd783e5881f375231d7657c4dce1601c4116336c03
MD5 fc2018b7da45353744bf831b7c506fe0
BLAKE2b-256 da4324ceed884f162be481634e935aeb16c2952ffd1782b9ca711dbb0c160f85

See more details on using hashes here.

File details

Details for the file spool-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: spool-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for spool-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 910138043de4ffd8fe2187ffa24bcca56ce6552a496e7015bdca35554f35d97c
MD5 7ecf347ae2a55dcf49d4bc2e6f8fe25d
BLAKE2b-256 c7a6fd5be1b19612498222bdbebe56500a02d0548f64d9ef13539afba257a196

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