diff --git a/social/email/61-email.js b/social/email/61-email.js index 4aa19614..f6df3387 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -77,7 +77,7 @@ module.exports = function(RED) { this.on("input", function(msg, send, done) { if (msg.hasOwnProperty("payload")) { - send = send || node.send; + send = send || function() { node.send.apply(node,arguments) }; if (smtpTransport) { node.status({fill:"blue",shape:"dot",text:"email.status.sending"}); if (msg.to && node.name && (msg.to !== node.name)) { diff --git a/social/email/package.json b/social/email/package.json index dae57898..6067444c 100644 --- a/social/email/package.json +++ b/social/email/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-email", - "version": "1.7.0", + "version": "1.7.1", "description": "Node-RED nodes to send and receive simple emails", "dependencies": { "imap": "^0.8.19",