v1.18.x
Julian Lam 7 years ago
parent eaae5b52cd
commit 9e44fc6ae2

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

@ -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) {

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

Loading…
Cancel
Save