Sending email was missing the from field
This commit is contained in:
parent
9c13c07da2
commit
2f301e315a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue