email node - add msg.priority and msg.headers options

This commit is contained in:
Dave Conway-Jones
2020-10-26 09:08:10 +00:00
parent 3b7fb0aa95
commit 07e5d9fd65
4 changed files with 6 additions and 3 deletions

View File

@@ -94,6 +94,8 @@ module.exports = function(RED) {
sendopts.inReplyTo = msg.inReplyTo;
sendopts.replyTo = msg.replyTo;
sendopts.references = msg.references;
sendopts.headers = msg.headers;
sendopts.priority = msg.priority;
}
sendopts.subject = msg.topic || msg.title || "Message from Node-RED"; // subject line
if (msg.hasOwnProperty("envelope")) { sendopts.envelope = msg.envelope; }

View File

@@ -2,7 +2,8 @@
<p>Sends the <code>msg.payload</code> as an email, with a subject of <code>msg.topic</code>.</p>
<p>The default message recipient can be configured in the node, if it is left
blank it should be set using the <code>msg.to</code> property of the incoming message. If left blank
you can also specify any or all of: <code>msg.cc</code>, <code>msg.bcc</code>, <code>msg.replyTo</code>, <code>msg.inReplyTo</code>, <code>msg.references</code> properties.</p>
you can also specify any or all of: <code>msg.cc</code>, <code>msg.bcc</code>, <code>msg.replyTo</code>,
<code>msg.inReplyTo</code>, <code>msg.references</code>, <code>msg.headers</code>, or <code>msg.priority</code> properties.</p>
<p>You may optionally set <code>msg.from</code> in the payload which will override the <code>userid</code>
default value.</p>
<h3>GMail users</h3>

View File

@@ -2,7 +2,7 @@
<script type="text/html" data-help-name="e-mail">
<p><code>msg.payload</code>email<code>msg.topic</code></p>
<p>メッセージの受信者のデフォルトはノードに設定できます空のままとした場合は入力メッセージの<code>msg.to</code><code>msg.cc</code><code>msg.bcc</code><code>msg.replyTo</code><code>msg.inReplyTo</code><code>msg.references</code></p>
<p>メッセージの受信者のデフォルトはノードに設定できます空のままとした場合は入力メッセージの<code>msg.to</code><code>msg.cc</code><code>msg.bcc</code><code>msg.replyTo</code><code>msg.inReplyTo</code><code>msg.references</code>, <code>msg.headers</code>, <code>msg.priority</code></p>
<p><code>msg.from</code><code>ID</code></p>
<p>ペイロードはHTML形式とすることも可能です</p>
<p>ペイロードにバイナリバッファを指定すると添付ファイルに変換しますファイル名は<code>msg.filename</code><code>msg.description</code></p>

View File

@@ -1,6 +1,6 @@
{
"name": "node-red-node-email",
"version": "1.8.1",
"version": "1.8.2",
"description": "Node-RED nodes to send and receive simple emails.",
"dependencies": {
"imap": "^0.8.19",