example docker-compose file:
version: "2"
services:
mail:
image: rendau/mail:latest
container_name: mail
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
environment:
TZ: "Asia/Almaty"
CONF_PATH: "/root/conf.json"
LISTEN_ADDRESS: ":80"
expose:
- "80"
volumes:
- "./conf.json:/root/conf.json"
networks:
- loc-net
conf.json must contain credentials for smpt:
{
"smtp_addr": "smtp.yandex.ru:587",
"smtp_auth_user": "username",
"smtp_auth_password": "password",
"smtp_auth_host": "smtp.yandex.ru"
}
Example request:
POST http://mail/send
{
"receivers": ["[email protected]"],
"subject": "Title",
"message": "Message body",
"sync": false
}
if "sync: true" then sending message will be in synchronized mode
Content type
Image
Digest
Size
6.8 MB
Last updated
about 7 years ago
docker pull rendau/mail