From ee085bcf07c21f7d60d34a3dce96ef5a2d5c2d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 6 Mar 2018 16:04:44 +0100 Subject: [PATCH] Added customizable notify-mail-to --- server/config/mailconfig.example.js | 1 + server/handlers/notifications.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/config/mailconfig.example.js b/server/config/mailconfig.example.js index 147fecf8..822434bb 100644 --- a/server/config/mailconfig.example.js +++ b/server/config/mailconfig.example.js @@ -18,6 +18,7 @@ var mail_config = { }, from: 'no-reply@zoff.me', to: 'contact@zoff.me' + notify_mail: 'notify@mail.example', }; module.exports = mail_config; diff --git a/server/handlers/notifications.js b/server/handlers/notifications.js index fdcf1950..d5de5eec 100644 --- a/server/handlers/notifications.js +++ b/server/handlers/notifications.js @@ -14,8 +14,8 @@ function requested_change(type, string, channel) { var message = "A " + type + " change was requested on " + channel + "

New supposed value is:

" + string + "


\ Go to https://admin.zoff.me/ to accept or decline the request."; var msg = { - from: 'no-reply@zoff.me', - to: 'kasper@zoff.me', + from: notify_mail.from, + to: mailconfig.notify_mail, subject: 'ZOFF: Requested new ' + type, text: message, html: message,