mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Updated sender address for member auth emails to support address
no issue - Member auth emails were previously using the `from` address as sender - New `members_support_address` was introduced with default as original "from" address - Auth emails use the new support address as sender
This commit is contained in:
parent
cbb3664bdd
commit
ca8b77182c
3 changed files with 7 additions and 2 deletions
|
@ -26,7 +26,7 @@ function createApiInstance(config) {
|
|||
logging.warn(message.text);
|
||||
}
|
||||
let msg = Object.assign({
|
||||
from: config.getEmailFromAddress(),
|
||||
from: config.getAuthEmailFromAddress(),
|
||||
subject: 'Signin',
|
||||
forceTextContent: true
|
||||
}, message);
|
||||
|
|
|
@ -44,6 +44,11 @@ class MembersConfigProvider {
|
|||
return fromAddress;
|
||||
}
|
||||
|
||||
getAuthEmailFromAddress() {
|
||||
const supportAddress = this._settingsCache.get('members_support_address');
|
||||
return supportAddress || this.getEmailFromAddress();
|
||||
}
|
||||
|
||||
getPublicPlans() {
|
||||
const CURRENCY_SYMBOLS = {
|
||||
USD: '$',
|
||||
|
|
|
@ -17,7 +17,7 @@ function createSettingsInstance(config) {
|
|||
logging.warn(message.text);
|
||||
}
|
||||
let msg = Object.assign({
|
||||
from: config.getEmailFromAddress(),
|
||||
from: config.getAuthEmailFromAddress(),
|
||||
subject: 'Update email address',
|
||||
forceTextContent: true
|
||||
}, message);
|
||||
|
|
Loading…
Add table
Reference in a new issue