From 75f9db8d8b81969712f6a7fd43dbcb57a5577d76 Mon Sep 17 00:00:00 2001 From: Luis Mario Domenzain Date: Tue, 21 May 2019 20:30:32 +0200 Subject: [PATCH] add to email threading headers (#542) and update documentation in all available locales nodemailer already supports all of: - msg.replyTo - msg.inReplyTo - msg.references --- social/email/61-email.html | 2 +- social/email/61-email.js | 3 +++ social/email/locales/ja/61-email.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/social/email/61-email.html b/social/email/61-email.html index b34baf13..e372f049 100644 --- a/social/email/61-email.html +++ b/social/email/61-email.html @@ -65,7 +65,7 @@

Sends the msg.payload as an email, with a subject of msg.topic.

The default message recipient can be configured in the node, if it is left blank it should be set using the msg.to property of the incoming message. If left blank - you can also specify msg.cc and/or msg.bcc properties.

+ you can also specify any or all of: msg.cc, msg.bcc, msg.replyTo, msg.inReplyTo, msg.references properties.

You may optionally set msg.from in the payload which will override the userid default value.

The payload can be html format.

diff --git a/social/email/61-email.js b/social/email/61-email.js index e9cc7974..c6e501df 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -87,6 +87,9 @@ module.exports = function(RED) { if (node.name === "") { sendopts.cc = msg.cc; sendopts.bcc = msg.bcc; + sendopts.inReplyTo = msg.inReplyTo; + sendopts.replyTo = msg.replyTo; + sendopts.references = msg.references; } sendopts.subject = msg.topic || msg.title || "Message from Node-RED"; // subject line if (msg.hasOwnProperty("envelope")) { sendopts.envelope = msg.envelope; } diff --git a/social/email/locales/ja/61-email.html b/social/email/locales/ja/61-email.html index 5a6300b7..e2d9d6c4 100644 --- a/social/email/locales/ja/61-email.html +++ b/social/email/locales/ja/61-email.html @@ -2,7 +2,7 @@