Added customizable notify-mail-to

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-06 16:04:44 +01:00
parent 1774efd26c
commit ee085bcf07
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -14,8 +14,8 @@ function requested_change(type, string, channel) {
var message = "A " + type + " change was requested on <b>" + channel + "</b><br><br>New supposed value is: <br><br><b>" + string + "</b><br><br><br> \
Go to <a href='https://admin.zoff.me/'>https://admin.zoff.me/</a> 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,