Cleaned up some email helpers (#18806)

no issue
This commit is contained in:
Simon Backx 2023-10-31 13:25:05 +01:00 committed by GitHub
parent 6074b1d04f
commit 398b98b5f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 10 deletions

View File

@ -35,10 +35,6 @@ class MembersConfigProvider {
return this._settingsHelpers.getMembersSupportAddress();
}
getAuthEmailFromAddress() {
return this.getEmailSupportAddress();
}
/**
* @deprecated Use settingsHelpers.isStripeConnected instead
*/

View File

@ -47,7 +47,7 @@ function createApiInstance(config) {
logging.warn(message.text);
}
let msg = Object.assign({
from: config.getAuthEmailFromAddress(),
from: config.getEmailSupportAddress(),
subject: 'Signin',
forceTextContent: true
}, message);

View File

@ -419,11 +419,6 @@ class StaffServiceEmails {
return this.settingsHelpers.getDefaultEmailDomain();
}
get membersAddress() {
// TODO: get from address of default newsletter?
return `noreply@${this.defaultEmailDomain}`;
}
get fromEmailAddress() {
return `ghost@${this.defaultEmailDomain}`;
}