From edb224af55663bf7ef7b793d52923a9213ac349f Mon Sep 17 00:00:00 2001 From: sharkinsspatial Date: Mon, 23 Nov 2015 10:20:21 -0300 Subject: [PATCH] Fixes issue #1828 Removes options.template after options.html is generated to prevent rejection by certain nodemailer transport plugins. --- common/models/user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/common/models/user.js b/common/models/user.js index d53d0998d..df7ede539 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -420,6 +420,7 @@ module.exports = function(User) { var template = loopback.template(options.template); options.html = template(options); + delete options.template; Email.send(options, function(err, email) { if (err) {