Add reportr-alerts-mail
to the package.json
and load it in your Reportr configuration:
reportr.configure({
alerts: [
require("reportr-alerts-mail")({
'service': process.env.MAIL_SERVICE,
'auth': {
'user': process.env.MAIL_USERNAME,
'password': process.env.MAIL_PASSWORD
},
'from': process.env.MAIL_FROM
})
]
});