mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
fixes #6371
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user