Metadata-Version: 2.1
Name: spool
Version: 0.9.8
Summary: Send mails with yaml
Home-page: UNKNOWN
Author: Daniel Besmer
Author-email: besmerd@gmail.com
License: BSD-3-Clause
Project-URL: Documentation, https://besmerd.github.io/spool
Project-URL: Code, https://github.com/besmerd/spool
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
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
Provides-Extra: install
Provides-Extra: dev
Provides-Extra: test
License-File: LICENSE.rst

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

Spool allows you to generate test mails specified in 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 generate/send
   mails:
     - name: Test Mail
       description: Hello world test mail
       headers:
         X-Mailer: Spool Mailer
       text_body: '{{ message }}'

Send/generate mail(s):
~~~~~~~~~~~~~~~~~~~~~~

.. code:: sh

   # 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 <https://besmerd.github.io/spool>`__.


