-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend-email.html
More file actions
66 lines (64 loc) · 2.21 KB
/
send-email.html
File metadata and controls
66 lines (64 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<script type="text/javascript">
RED.nodes.registerType('send-email',{
category: 'TC Router',
color: '#a6bbcf',
defaults: {
router: {required: true,type:"tc-router"},
name: {value:"send email"}
},
inputs:1,
outputs:1,
icon: "font-awesome/fa-envelope",
label: function() {
return this.name||"send-email";
}
});
</script>
<script type="text/x-red" data-template-name="send-email">
<div class="form-row">
<label for="node-input-router"><i class="icon-globe"></i> TC Router</label>
<input type="text" id="node-input-router"></input>
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="send-email">
<p>Sends Emails via the TC Router socket server xml interface</p>
<h3>Input</h3>
<dl class="message-properties">
<dt>to
<span class="property-type">string | array[String]</span>
</dt>
<dd>The email addresses to send to</dd>
<dt class="optional">cc
<span class="property-type">string</span>
</dt>
<dd>Carbon copy recipients</dd>
<dt>subject
<span class="property-type">string</span>
</dt>
<dd>Subject of the email</dd>
<dt>body
<span class="property-type">string</span>
</dt>
<dd>Content of the email</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>success
<span class="property-type">bool</span>
</dt>
<dd>Was the email sent successfully</dd>
<dt class="optional">message
<span class="property-type">string</span>
</dt>
<dd>Optional property/message returned by router describing why an email failed to send</dd>
</dl>
<h3>References</h3>
<ul>
<li><a href="https://zmink.gitbook.io/node-tcrouter/">Setup Guide</a> - setup guide</li>
<li><a href="https://github.com/PhoenixContactUSA/node-red-contrib-tcrouter">GitHub</a>Github repo</li>
</ul>
</script>