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:
parent
14cff61d49
commit
5470271a92
@ -145,7 +145,14 @@ module.exports = function(RED) {
|
|||||||
} else {
|
} else {
|
||||||
node.log(RED._("email.status.messagesent",{response:info.response}));
|
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}});
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user