Go to file
2020-08-25 09:04:36 +02:00
.gitignore gitignore 2020-08-25 08:50:40 +02:00
mailing.py envoie les emails via les templates jinja2 et données csv 2020-08-25 08:50:40 +02:00
README.md précise des détails dans le readme 2020-08-25 09:04:36 +02:00
test-emailling.footer ajoute des exemples 2020-08-25 08:50:40 +02:00
test-emailling.html ajoute des exemples 2020-08-25 08:50:40 +02:00
test-emailling.subject ajoute des exemples 2020-08-25 08:50:40 +02:00
test-emailling.txt ajoute des exemples 2020-08-25 08:50:40 +02:00
test-recipients-data fix_datatest 2020-08-25 08:50:40 +02:00

Spamotron

Simple mailing script.

Table of content

Installation

Requirements

On a Debian-based host running at least Debian Stretch, you will need the following packages:

  • git (recommended for getting the source)
  • python3
  • python3-jinja2

Manual installation

  1. Clone repo

    $ git clone https://forge.april.org/adminsys/spamotron
    $ cd spamotron
    $ chmod a+x mailing.py
    
  2. Try it

    $ ./mailing.py --help
    $ ./mailing.py -t test-recipients-data -b test-emailling --dry-run --verbose
    

Input format

The « to-file » is expected to be csv with the default dialect (delimiter = ,, char delimiter =").

The first line declare columns headers. The from and to headers are expected the be found.

To avoid boring repetition it is possible to declare a default column value using : in header. The default value is considered when the column is lacking, not when the column is empty.

License

Spamotron is developed by April and licensed under the GPLv2+.