forked from openiap/opencore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmtpserver.html
More file actions
38 lines (38 loc) · 1.39 KB
/
Copy pathsmtpserver.html
File metadata and controls
38 lines (38 loc) · 1.39 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
<script type="text/x-red" data-template-name="smtpserver in">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-email"><i class="fa fa-tag"></i> Email</label>
<input type="text" id="node-input-email" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-port"><i class="fa fa-tag"></i> Port</label>
<input type="text" id="node-input-port" placeholder="Port ">
</div>
</script>
<script type="text/x-red" data-help-name="smtpserver in">
<p>Receive emails directly from outside world on port 25s</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('smtpserver in', {
category: 'api',
color: "#A6BBCF",
paletteLabel: 'smtpserver',
icon: "font-awesome/fa-envelope",
defaults: {
name: { value: "", required: false },
port: { value: "3025", required: true },
email: { value: 'allan@app.openiap.io', required: true }
},
inputs: 0,
outputs: 1,
label: function () {
return this.name || this.email || "smtpserver in";
},
labelStyle: function () {
return this.name ? "node_label_italic" : "";
}
});
</script>