mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added site title as sender name for bulk email
no issue
This commit is contained in:
parent
c4706230d9
commit
dbae6ccb58
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@ const _ = require('lodash');
|
|||
const common = require('../../lib/common');
|
||||
const mailgunProvider = require('./mailgun');
|
||||
const configService = require('../../config');
|
||||
const settingsCache = require('../settings/cache');
|
||||
|
||||
/**
|
||||
* An email address
|
||||
|
@ -37,7 +38,8 @@ module.exports = {
|
|||
}
|
||||
try {
|
||||
const chunkedRecipients = _.chunk(recipients, BATCH_SIZE);
|
||||
|
||||
const blogTitle = settingsCache.get('title');
|
||||
fromAddress = blogTitle ? `${blogTitle}<${fromAddress}>` : fromAddress;
|
||||
return Promise.map(chunkedRecipients, (toAddresses) => {
|
||||
const recipientVariables = {};
|
||||
toAddresses.forEach((email) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue