1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Add e-mail sending information for e-mail node

This commit is contained in:
Kazuhito Yokoi 2022-03-10 11:16:18 +09:00
parent 14cff61d49
commit 5470271a92

View File

@ -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();
}
}
});
}