Component Details
appmixer.mandrill.messages.SendTemplate
1.0.0
Public
{ "name": "appmixer.mandrill.messages.SendTemplate", "author": "Martin Krcmar <martin@client.io>", "description": "Send a new transactional message through Mandrill using a template.", "auth": { "service": "appmixer:mandrill" }, "inPorts": [ { "name": "in", "schema": { "type": "object", "properties": { "fromName": { "type": "string", "maxLength": 255 }, "fromEmail": { "type": "string", "format": "email" }, "to": { "type": "string", "format": "email" }, "subject": { "type": "string" }, "template": { "type": "string" }, "variables": { "oneOf": [ { "type": "string" }, { "type": "object" } ] } }, "required": [ "to", "template", "fromEmail" ] }, "inspector": { "inputs": { "fromName": { "type": "text", "group": "transformation", "label": "From Name", "index": 1, "attrs": { "label": { "data-tooltip": "The name of the author of the message, 255 characters max." } } }, "fromEmail": { "type": "text", "group": "transformation", "label": "From Email", "index": 2, "attrs": { "label": { "data-tooltip": "The email address of the author of the message." } } }, "to": { "type": "text", "group": "transformation", "label": "To", "index": 3, "attrs": { "label": { "data-tooltip": "The email address of the message's recipient." } } }, "subject": { "type": "text", "group": "transformation", "label": "Subject", "index": 4, "attrs": { "label": { "data-tooltip": "The subject of the message." } } }, "template": { "type": "text", "group": "transformation", "label": "Template name", "index": 5, "attrs": { "label": { "data-tooltip": "Mandrill template name." } }, "source": { "url": "/component/appmixer/mandrill/templates/ListTemplates?outPort=templates", "data": { "transform": "./transformers#templatesToSelectArray" } } }, "variables": { "type": "textarea", "group": "transformation", "label": "Template variables", "index": 6, "attrs": { "label": { "data-tooltip": "<p>Template global variables. In JSON format.</p> Example:<br /><code>{\"EMAIL\":\"{{{email}}}\",\"YOUR_VARIABLE\":\"Your constant value\"}</code> <p>In this case you have two variables in your template - EMAIL and YOUR_VARIABLE, EMAIL value is taken from the previous component and the value YOUR_VARIABLE is constant string. Don't forget all those neccessary double quotes - \" !</p>" } } } }, "groups": { "transformation": { "label": "Transformation", "index": 1 } } } } ], "outPorts": [ { "name": "out", "options": [ { "label": "id", "value": "_id" } ] } ], "icon": "data:image/svg+xml;base64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