@cgignite/ignite-sendgrid
Version:
Send Grid node allows you to send email within your Ignite APIs and apps via Send Grid
42 lines (40 loc) • 1.2 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('send grid', {
category: 'utility',
color: '#3d7e9a',
defaults: {
name: { value: "" },
sendgridconfig : { type: "send-grid-config" },
},
inputs: 1,
outputs: 1,
icon: 'font-awesome/fa-envelope',
label: function () {
return this.name || "send grid";
}
});
</script>
<script type="text/html" data-template-name="send grid">
<div class="form-row">
<label for="node-input-name">Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-sendgridconfig">Setting</label>
<input type="text" id="node-input-sendgridconfig" placeholder="Setting">
</div>
<div>
<p>
Send Message in following format
<pre>
msg.payload = {
"to": "",
"data": {}
}
</pre>
</p>
</div>
</script>
<script type="text/html" data-help-name="send grid">
<p>A node that enable us to send email via send grid</p>
</script>