mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	add to email threading headers (#542)
and update documentation in all available locales nodemailer already supports all of: - msg.replyTo - msg.inReplyTo - msg.references
This commit is contained in:
		
				
					committed by
					
						 Dave Conway-Jones
						Dave Conway-Jones
					
				
			
			
				
	
			
			
			
						parent
						
							bd563a7217
						
					
				
				
					commit
					75f9db8d8b
				
			| @@ -65,7 +65,7 @@ | ||||
|     <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 <code>msg.cc</code> and/or <code>msg.bcc</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> properties.</p> | ||||
|     <p>You may optionally set <code>msg.from</code> in the payload which will override the <code>userid</code> | ||||
|     default value.</p> | ||||
|     <p>The payload can be html format.</p> | ||||
|   | ||||
| @@ -87,6 +87,9 @@ module.exports = function(RED) { | ||||
|                     if (node.name === "") { | ||||
|                         sendopts.cc = msg.cc; | ||||
|                         sendopts.bcc = msg.bcc; | ||||
|                         sendopts.inReplyTo = msg.inReplyTo; | ||||
|                         sendopts.replyTo = msg.replyTo; | ||||
|                         sendopts.references = msg.references; | ||||
|                     } | ||||
|                     sendopts.subject = msg.topic || msg.title || "Message from Node-RED"; // subject line | ||||
|                     if (msg.hasOwnProperty("envelope")) { sendopts.envelope = msg.envelope; } | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| <script type="text/x-red" 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>プロパティを設定することもできます。</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.from</code>を指定すると、<code>ユーザID</code>のデフォルト値を上書きできます。</p> | ||||
|     <p>ペイロードはHTML形式とすることも可能です。</p> | ||||
|     <p>ペイロードにバイナリバッファを指定すると、添付ファイルに変換します。ファイル名は<code>msg.filename</code>に指定、メッセージ本体は<code>msg.description</code>に指定することができます。</p> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user