mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
add missing header property from email in node
to close #281 Thanks @obook
This commit is contained in:
parent
a4eaf55961
commit
dc1ca765ec
@ -185,6 +185,7 @@ module.exports = function(RED) {
|
||||
msg.payload = mailMessage.text;
|
||||
msg.topic = mailMessage.subject;
|
||||
msg.date = mailMessage.date;
|
||||
msg.header = mailMessage.headers;
|
||||
if (mailMessage.html) { msg.html = mailMessage.html; }
|
||||
if (mailMessage.to && mailMessage.from.to > 0) { msg.to = mailMessage.to; }
|
||||
if (mailMessage.cc && mailMessage.from.cc > 0) { msg.cc = mailMessage.cc; }
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-email",
|
||||
"version": "0.1.20",
|
||||
"version": "0.1.21",
|
||||
"description": "Node-RED nodes to send and receive simple emails",
|
||||
"dependencies": {
|
||||
"nodemailer": "^1.11.0",
|
||||
|
Loading…
Reference in New Issue
Block a user