0
Fork 0
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:
Sebastian Gierlinger 2013-10-11 11:47:41 +02:00 committed by Hannah Wolfe
parent a37d487ffd
commit b040ea3365

View file

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