mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
add envelope to email node options
as part of node-red#875
This commit is contained in:
@@ -89,6 +89,7 @@ module.exports = function(RED) {
|
||||
var sendopts = { from: node.userid }; // sender address
|
||||
sendopts.to = node.name || msg.to; // comma separated list of addressees
|
||||
sendopts.subject = msg.topic || msg.title || "Message from Node-RED"; // subject line
|
||||
if (msg.hasOwnProperty("envelope")) { sendopts.envelope = msg.envelope; }
|
||||
if (Buffer.isBuffer(msg.payload)) { // if it's a buffer in the payload then auto create an attachment instead
|
||||
if (!msg.filename) {
|
||||
var fe = "bin";
|
||||
|
Reference in New Issue
Block a user