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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
spool-0.8.1-py3-none-any.whl
(8.4 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78dd67f59a10bd63821ff0fd783e5881f375231d7657c4dce1601c4116336c03
|
|
| MD5 |
fc2018b7da45353744bf831b7c506fe0
|
|
| BLAKE2b-256 |
da4324ceed884f162be481634e935aeb16c2952ffd1782b9ca711dbb0c160f85
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
910138043de4ffd8fe2187ffa24bcca56ce6552a496e7015bdca35554f35d97c
|
|
| MD5 |
7ecf347ae2a55dcf49d4bc2e6f8fe25d
|
|
| BLAKE2b-256 |
c7a6fd5be1b19612498222bdbebe56500a02d0548f64d9ef13539afba257a196
|