From 5470271a923df93bcc9eea5ece5fd3c0529bccd3 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Thu, 10 Mar 2022 11:16:18 +0900 Subject: [PATCH] Add e-mail sending information for e-mail node --- social/email/61-email.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/social/email/61-email.js b/social/email/61-email.js index 50ee0d924..193f110ce 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -145,7 +145,14 @@ module.exports = function(RED) { } else { node.log(RED._("email.status.messagesent",{response:info.response})); node.status({text:"",response:info.response,msg:{to:msg.to,topic:msg.topic,id:msg._msgid}}); - if (done) { done(); } + if (done) { + msg.payload = sendopts.text; + msg.from = sendopts.from; + msg.to = sendopts.to; + msg.topic = sendopts.subject; + msg.response = info.response; + done(); + } } }); }