This commit is contained in:
Julian Lam
2018-03-20 08:41:49 -04:00
parent eaae5b52cd
commit 9e44fc6ae2
3 changed files with 3 additions and 4 deletions

View File

@@ -229,7 +229,7 @@ Emailer.sendToEmail = function (template, email, language, params, callback) {
to: email,
from: meta.config['email:from'] || 'no-reply@' + getHostname(),
from_name: meta.config['email:from_name'] || 'NodeBB',
subject: results.subject,
subject: '[' + meta.config.title + '] ' + results.subject,
html: results.html,
plaintext: htmlToText.fromString(results.html, {
ignoreImage: true,

View File

@@ -228,9 +228,8 @@ SocketAdmin.settings.clearSitemapCache = function (socket, data, callback) {
};
SocketAdmin.email.test = function (socket, data, callback) {
var site_title = meta.config.title || 'NodeBB';
var payload = {
subject: '[' + site_title + '] Test Email',
subject: 'Test Email',
};
switch (data.template) {

View File

@@ -134,7 +134,7 @@ Digest.send = function (data, callback) {
});
emailsSent += 1;
emailer.send('digest', userObj.uid, {
subject: '[' + meta.config.title + '] [[email:digest.subject, ' + (now.getFullYear() + '/' + (now.getMonth() + 1) + '/' + now.getDate()) + ']]',
subject: '[[email:digest.subject, ' + (now.getFullYear() + '/' + (now.getMonth() + 1) + '/' + now.getDate()) + ']]',
username: userObj.username,
userslug: userObj.userslug,
notifications: notifications,