diff --git a/social/email/61-email.html b/social/email/61-email.html
index bfddae01..5ec339ef 100644
--- a/social/email/61-email.html
+++ b/social/email/61-email.html
@@ -71,13 +71,14 @@
diff --git a/social/email/61-email.js b/social/email/61-email.js
index 178bf2f9..fc8b91a5 100644
--- a/social/email/61-email.js
+++ b/social/email/61-email.js
@@ -88,6 +88,10 @@ module.exports = function(RED) {
}
var sendopts = { from: node.userid }; // sender address
sendopts.to = node.name || msg.to; // comma separated list of addressees
+ if (node.name === "") {
+ sendopts.cc = msg.cc;
+ sendopts.bcc = msg.bcc;
+ }
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
diff --git a/social/email/package.json b/social/email/package.json
index 9ea93d9d..953b0e8e 100644
--- a/social/email/package.json
+++ b/social/email/package.json
@@ -1,21 +1,21 @@
{
"name" : "node-red-node-email",
- "version" : "0.1.6",
+ "version" : "0.1.7",
"description" : "Node-RED nodes to send and receive simple emails",
- "dependencies" : {
- "nodemailer" : "1.11.*",
- "poplib" : "0.1.7",
- "mailparser" : "0.5.3",
- "imap" : "0.8.17"
+ "dependencies": {
+ "nodemailer": "^1.11.0",
+ "poplib": "^0.1.7",
+ "mailparser": "^0.5.3",
+ "imap": "^0.8.17"
},
- "repository" : {
- "type":"git",
+ "repository": {
+ "type": "git",
"url":"https://github.com/node-red/node-red-nodes/tree/master/social/email"
},
"license": "Apache-2.0",
"keywords": [ "node-red", "email", "gmail", "imap" ],
- "node-red" : {
- "nodes" : {
+ "node-red": {
+ "nodes": {
"email": "61-email.js"
}
},