Metadata-Version: 2.1
Name: spool
Version: 0.8.0
Summary: Send mails with yaml
Home-page: UNKNOWN
Author: Daniel Besmer
Author-email: besmerd@gmail.com
License: BSD-3-Clause
Keywords: email,mailer
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
Requires-Dist: cerberus
Requires-Dist: M2Crypto
Requires-Dist: dkimpy
Requires-Dist: jinja2
Requires-Dist: pyyaml
Provides-Extra: install
Requires-Dist: setuptools-scm ; extra == 'install'
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'

$ spool\_
=========

Send (test) mails with YAML.

Installation
------------

.. code:: sh

   pip install .

Usage
-----

.. code:: sh

   spool --help

Example configuration file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: yaml

   ---
   # 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):
~~~~~~~~~~~~~~~~~

.. code:: sh

   spool example/simple.yml

For further examples visit the
`documentation <https://besmerd.github.io/spool>`__.


