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:
parent
41c70dfc96
commit
cb16675e29
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue