Mailer service
Allows other services to send email notifications
Setup
Use the template EVA_DIR/share/svc-tpl/svc-tpl-mailer.yml:
# Mailer service (SMTP gateway)
command: svc/eva-svc-mailer
bus:
path: var/bus.ipc
config:
#from: eva@domain
#default_rcp:
# - some@domain.com
# - some2@domain.com
smtp:
host: localhost
port: 25
tls: false
ssl: false
#username: user
#password: secret
pool_size: 5
user: nobody
Create the service using eva-shell:
eva svc create eva.svc.mailer /opt/eva4/share/svc-tpl/svc-tpl-mailer.yml
or using the bus CLI client:
cd /opt/eva4
cat DEPLOY.yml | ./bin/yml2mp | \
./sbin/bus ./var/bus.ipc rpc call eva.core svc.deploy -
(see eva.core::svc.deploy for more info)
EAPI methods
See EAPI commons for the common information about the bus, types, errors and RPC calls.
send
Description |
Sends a e-mail letter |
Parameters |
required |
Returns |
nothing |
Name |
Type |
Description |
Required |
rcp |
String/Vec<String> |
recipients |
no |
subject |
String |
e-mail subject |
no |
text |
String |
e-mail text |
no |