0
Fork 0
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:
Rish 2020-08-26 13:30:16 +05:30 committed by Rishabh Garg
parent cbb3664bdd
commit ca8b77182c
3 changed files with 7 additions and 2 deletions

View file

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

View file

@ -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: '$',

View file

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