mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Change from address
closes #872 - changed from address to use config.mail.fromaddress - changed from address to default to settings.email
This commit is contained in:
parent
a37d487ffd
commit
b040ea3365
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ GhostMailer.prototype.send = function (message) {
|
|||
return when.reject(new Error('Email Error: Incomplete message data.'));
|
||||
}
|
||||
|
||||
var from = 'ghost-mailer@' + url.parse(this.ghost.config().url).hostname,
|
||||
var from = this.ghost.config().mail.fromaddress || this.ghost.settings('email'),
|
||||
to = message.to || this.ghost.settings('email'),
|
||||
sendMail = nodefn.lift(this.transport.sendMail.bind(this.transport));
|
||||
|
||||
|
|
Loading…
Reference in a new issue