Sending email was missing the from field

This commit is contained in:
Doug Toppin 2014-02-23 21:08:13 -05:00
parent 9c13c07da2
commit 2f301e315a
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ User.prototype.verify = function (options, fn) {
var template = loopback.template(options.template); var template = loopback.template(options.template);
Email.send({ Email.send({
to: options.to || user.email, to: options.to || user.email,
from: options.from,
subject: options.subject || 'Thanks for Registering', subject: options.subject || 'Thanks for Registering',
text: options.text, text: options.text,
html: template(options) html: template(options)