Fixing config path in email

This commit is contained in:
Hannah Wolfe 2013-09-14 18:34:21 +01:00
parent 3fab1f708a
commit dea7ac56ac

View File

@ -96,7 +96,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().hostname),
var from = 'ghost-mailer@' + url.parse(this.ghost.config().url).hostname,
to = message.to || this.ghost.settings().email,
sendMail = nodefn.lift(this.transport.sendMail.bind(this.transport));