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 generate/send
mails:
- name: Test Mail
description: Hello world test mail
headers:
X-Mailer: Spool Mailer
text_body: '{{ message }}'
Send/generate mail(s):
# Send mails to/trought a relay smtp server
spool --verbose --relay localhost:2525 example/simple.yml
# Send mails directly to remote smtp server
spool --verbose example/simple.yml
# Use Google's dns servers for MX rr lookup
spool --verbose --nameserver 8.8.8.8 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-1.0.0.tar.gz
(15.3 kB
view details)
Built Distribution
spool-1.0.0-py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file spool-1.0.0.tar.gz
.
File metadata
- Download URL: spool-1.0.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73b1eea981609e44006db2b3c6afb1be84958952d30e42f82e8e5ddcb4342a0d |
|
MD5 | e7ad4e89f47e755a2d03629dbecc06f3 |
|
BLAKE2b-256 | d87ed1195ee6167962a1c849f397ab602d9dd791c1ee68253c3d03d968cd7ba7 |
File details
Details for the file spool-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: spool-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dc924ef6ff1603f0493bb4fca48bdbf0669e4980c83c9a751673f458b9607c1 |
|
MD5 | 65639502ef9b9eb223eed0dc4fc729c7 |
|
BLAKE2b-256 | 231a90a2cbeab6f36ad0a57e639d3262b00e79428e6489f4b76f4df5fa3a7689 |