-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws-ses-templated.html
74 lines (72 loc) · 2.89 KB
/
aws-ses-templated.html
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
67
68
69
70
71
72
73
74
<script type="text/javascript">
RED.nodes.registerType('aws-ses-templated',{
category: 'AWS',
color: '#DEBD5C',
defaults: {
name: {value:""},
sender: {value: ""}
},
inputs:1,
outputs:1,
icon: "envelope.png",
label: function() {
return this.name||"AWS SES Send";
},
credentials: {
aws_access_key_id: {type:"text"},
aws_secret_access_key: {type:"password"},
region: {type:"text"}
}
});
</script>
<script type="text/html" data-template-name="aws-ses-templated">
<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-sender"><i class="fa fa-email"></i> Sender</label>
<input type="text" id="node-input-sender" placeholder="sender">
</div>
<div class="form-row">
<label for="node-input-aws_access_key_id"><i class="fa fa-key"></i> AWS Access Key ID</label>
<input type="text" id="node-input-aws_access_key_id">
</div>
<div class="form-row">
<label for="node-input-aws_secret_access_key"><i class="fa fa-tag"></i> AWS Secret Access Key</label>
<input type="password" id="node-input-aws_secret_access_key">
</div>
<div class="form-row">
<label for="node-input-region"><i class="fa fa-key"></i> Region</label>
<input type="text" id="node-input-region">
</div>
</script>
<script type="text/html" data-help-name="aws-ses-templated">
<h1>A simple node that sends templated e-mails with AWS Simple Email Service.</h1>
<h2>1. Configure the node</h1>
<p>Double click the node and fill all fields</p>
<h2>Payload</h2>
<p>It expects a payload with these properties;</p>
<dl>
<dt>payload.recipient</dt>
<dd>Email address to send to. Accepts one single email address (string) or multiple email addresses (array of strings).</dd>
<dt>payload.cc</dt>
<dd>Email address to send a carbon copy to. Accepts one single email address (string) or multiple email addresses (array of strings).</dd>
<dt>payload.bcc</dt>
<dd>Email address to send a blind carbon copy to. Accepts one single email address (string) or multiple email addresses (array of strings).</dd>
<dt>payload.template</dt>
<dd>The template name created on AWS SES.</dd>
<dt>payload.templateData</dt>
<dd>A list of replacement values to apply to the template (stringified JSON).</dd>
</dl>
<h2>Return</h2>
<p>It returns an Object with the Id of the email sended</p>
<pre>
{
"ResponseMetadata":{
"RequestId":"d05b47cf-0ee2-413f-b06b-fe981fbfed1b"
},
"MessageId":"0101017599fe549f-64676c3d-8dda-478b-9765-228d49de341c-000000"
}
</pre>
</script>