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
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.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
spool-0.8.0-py3-none-any.whl
(8.3 kB
view hashes)