mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added customizable notify-mail-to
This commit is contained in:
@@ -18,6 +18,7 @@ var mail_config = {
|
|||||||
},
|
},
|
||||||
from: 'no-reply@zoff.me',
|
from: 'no-reply@zoff.me',
|
||||||
to: 'contact@zoff.me'
|
to: 'contact@zoff.me'
|
||||||
|
notify_mail: 'notify@mail.example',
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = mail_config;
|
module.exports = mail_config;
|
||||||
|
|||||||
@@ -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> \
|
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.";
|
Go to <a href='https://admin.zoff.me/'>https://admin.zoff.me/</a> to accept or decline the request.";
|
||||||
var msg = {
|
var msg = {
|
||||||
from: 'no-reply@zoff.me',
|
from: notify_mail.from,
|
||||||
to: 'kasper@zoff.me',
|
to: mailconfig.notify_mail,
|
||||||
subject: 'ZOFF: Requested new ' + type,
|
subject: 'ZOFF: Requested new ' + type,
|
||||||
text: message,
|
text: message,
|
||||||
html: message,
|
html: message,
|
||||||
|
|||||||
Reference in New Issue
Block a user