mirror of https://github.com/node-red/node-red.git
handle pure plain text messages in email node.
parent
1014abe92f
commit
8dc98420db
|
@ -201,8 +201,10 @@ module.exports = function(RED) {
|
|||
if (parts[p].indexOf("text/plain") >= 0) {
|
||||
pay.payload = parts[p].split("\n").slice(1,-2).join("\n").trim();
|
||||
}
|
||||
if (parts[p].indexOf("text/html") >= 0) {
|
||||
else if (parts[p].indexOf("text/html") >= 0) {
|
||||
pay.html = parts[p].split("\n").slice(1,-2).join("\n").trim();
|
||||
} else {
|
||||
pay.payload = parts[0];
|
||||
}
|
||||
}
|
||||
//pay.body = buffer;
|
||||
|
|
Loading…
Reference in New Issue