0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added "from" parameter to email verification

refs https://github.com/TryGhost/Team/issues/961

- More specific "from" address should improve handling when escalated. See refed issue for details.
This commit is contained in:
Naz 2021-08-12 14:00:33 +04:00
parent 41c70dfc96
commit cb16675e29

View file

@ -80,6 +80,7 @@ const startEmailVerification = async (importedNumber) => {
}], {context: {internal: true}});
const escalationAddress = config.get('hostSettings:emailVerification:escalationAddress');
const fromAddress = config.get('user_email');
if (escalationAddress) {
ghostMailer.send({
@ -89,6 +90,7 @@ const startEmailVerification = async (importedNumber) => {
siteUrl: urlUtils.getSiteUrl()
}),
forceTextContent: true,
from: fromAddress,
to: escalationAddress
});
}