Simple async smtp sender with redis as broker.
$ git clone https://github.com/AHAPX/smtpush
$ cd smtpush
$ pip install -r requirements.txt
$ python smtpush.py -c ~/config.cfg
$ redis-cli
> PUBLISH smtp-channel '{"to": ["mail@host"], "subj": "test", "body": "hello"}'
Config has ini format, i.e.
[main]
debug = false
[smtp]
host = mail.host
port = 587
username = user
passwor = password
from = info@host
tls = true
ssl = true
[redis]
host = localhost
port = 6379
db = 1
channel = smtp-channel
$ python -m unittest
SMTPush server subscribes to channel and wait messages. Message must be valid JSON. It should consist keys:
Content type
Image
Digest
Size
31.2 MB
Last updated
about 10 years ago
docker pull anarchy/smtpush