mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	email node - add msg.priority and msg.headers options
This commit is contained in:
		| @@ -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; } | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user