1
0
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:
Dave Conway-Jones 2017-02-22 17:55:46 +00:00
parent a4eaf55961
commit dc1ca765ec
2 changed files with 2 additions and 1 deletions

View File

@ -185,6 +185,7 @@ module.exports = function(RED) {
msg.payload = mailMessage.text; msg.payload = mailMessage.text;
msg.topic = mailMessage.subject; msg.topic = mailMessage.subject;
msg.date = mailMessage.date; msg.date = mailMessage.date;
msg.header = mailMessage.headers;
if (mailMessage.html) { msg.html = mailMessage.html; } if (mailMessage.html) { msg.html = mailMessage.html; }
if (mailMessage.to && mailMessage.from.to > 0) { msg.to = mailMessage.to; } if (mailMessage.to && mailMessage.from.to > 0) { msg.to = mailMessage.to; }
if (mailMessage.cc && mailMessage.from.cc > 0) { msg.cc = mailMessage.cc; } if (mailMessage.cc && mailMessage.from.cc > 0) { msg.cc = mailMessage.cc; }

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-node-email", "name": "node-red-node-email",
"version": "0.1.20", "version": "0.1.21",
"description": "Node-RED nodes to send and receive simple emails", "description": "Node-RED nodes to send and receive simple emails",
"dependencies": { "dependencies": {
"nodemailer": "^1.11.0", "nodemailer": "^1.11.0",