mandrill.json•10.3 kB
{
"nodeType": "n8n-nodes-base.mandrill",
"displayName": "Mandrill",
"description": "Consume Mandrill API",
"version": 1,
"properties": [
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "message",
"description": "Send a message",
"options": [
{
"name": "Message",
"value": "message",
"description": "Send a message"
}
]
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "sendTemplate",
"description": "Send message based on template",
"options": [
{
"name": "Send Template",
"value": "sendTemplate",
"description": "Send message based on template"
},
{
"name": "Send HTML",
"value": "sendHtml",
"description": "Send message based on HTML"
}
],
"displayOptions": {
"show": {
"resource": [
"message"
]
}
}
},
{
"name": "template",
"displayName": "Template Name or ID",
"type": "options",
"default": "",
"description": "The template you want to send. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"sendTemplate"
]
}
}
},
{
"name": "fromEmail",
"displayName": "From Email",
"type": "string",
"default": "",
"description": "Email address of the sender optional with name",
"placeholder": "Admin <example@yourdomain.com>",
"required": true,
"displayOptions": {
"show": {
"operation": [
"sendHtml",
"sendTemplate"
]
}
}
},
{
"name": "toEmail",
"displayName": "To Email",
"type": "string",
"default": "",
"description": "Email address of the recipient. Multiple ones can be separated by comma.",
"placeholder": "info@example.com",
"required": true,
"displayOptions": {
"show": {
"operation": [
"sendHtml",
"sendTemplate"
]
}
}
},
{
"name": "jsonParameters",
"displayName": "JSON Parameters",
"type": "boolean",
"default": false,
"displayOptions": {
"show": {
"operation": [
"sendHtml",
"sendTemplate"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether to enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of \"queued\" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.",
"placeholder": "Add option",
"options": [
{
"name": "async",
"displayName": "Async",
"type": "boolean",
"default": false,
"description": "Whether to enable a background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of \"queued\" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async."
},
{
"name": "autoText",
"displayName": "Auto Text",
"type": "boolean",
"default": false,
"description": "Whether or not to automatically generate a text part for messages that are not given text"
},
{
"name": "autoHtml",
"displayName": "Auto HTML",
"type": "boolean",
"default": false,
"description": "Whether or not to automatically generate an HTML part for messages that are not given HTML"
},
{
"name": "bccAddress",
"displayName": "BCC Address",
"type": "string",
"default": "",
"description": "An optional address to receive an exact copy of each recipient's email",
"placeholder": "message.bcc_address@example.com"
},
{
"name": "fromName",
"displayName": "From Name",
"type": "string",
"default": "",
"description": "Optional from name to be used",
"placeholder": "John Doe"
},
{
"name": "googleAnalyticsCampaign",
"displayName": "Google Analytics Campaign",
"type": "string",
"default": "",
"description": "Optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead.",
"placeholder": ""
},
{
"name": "googleAnalyticsDomains",
"displayName": "Google Analytics Domains",
"type": "string",
"default": "",
"description": "An array of strings separated by a comma (,) indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically",
"placeholder": ""
}
],
"typeOptions": {
"rows": 5
},
"displayOptions": {
"show": {
"operation": [
"sendHtml",
"sendTemplate"
]
}
}
},
{
"name": "mergeVarsJson",
"displayName": "Merge Vars",
"type": "json",
"default": "",
"description": "Global merge variables",
"displayOptions": {
"show": {
"jsonParameters": [
true
]
}
}
},
{
"name": "mergeVarsUi",
"displayName": "Merge Vars",
"type": "fixedCollection",
"default": {},
"description": "Per-recipient merge variables",
"placeholder": "Add Merge Vars",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"jsonParameters": [
false
]
}
}
},
{
"name": "metadataUi",
"displayName": "Metadata",
"type": "fixedCollection",
"default": {},
"description": "Metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.",
"placeholder": "Add Metadata",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"jsonParameters": [
false
]
}
}
},
{
"name": "metadataJson",
"displayName": "Metadata",
"type": "json",
"default": "",
"description": "Metadata an associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.",
"displayOptions": {
"show": {
"jsonParameters": [
true
]
}
}
},
{
"name": "attachmentsJson",
"displayName": "Attachments",
"type": "json",
"default": "",
"description": "An array of supported attachments to add to the message",
"displayOptions": {
"show": {
"jsonParameters": [
true
]
}
}
},
{
"name": "attachmentsUi",
"displayName": "Attachments",
"type": "fixedCollection",
"default": {},
"description": "The MIME type of the attachment",
"placeholder": "Add Attachments",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"jsonParameters": [
false
]
}
}
},
{
"name": "headersJson",
"displayName": "Headers",
"type": "json",
"default": "",
"description": "Optional extra headers to add to the message (most headers are allowed)",
"displayOptions": {
"show": {
"jsonParameters": [
true
]
}
}
},
{
"name": "headersUi",
"displayName": "Headers",
"type": "fixedCollection",
"default": {},
"description": "Optional extra headers to add to the message (most headers are allowed)",
"placeholder": "Add Headers",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"jsonParameters": [
false
]
}
}
}
],
"credentialsConfig": [
{
"name": "mandrillApi",
"required": true
},
{
"name": "resource",
"required": false
},
{
"name": "operation",
"required": false
},
{
"name": "template",
"required": true
},
{
"name": "mergeVarsJson",
"required": false
},
{
"name": "mergeVarsUi",
"required": false
},
{
"name": "metadataUi",
"required": false
},
{
"name": "metadataJson",
"required": false
},
{
"name": "attachmentsUi",
"required": false
},
{
"name": "attachmentsBinary",
"required": false
},
{
"name": "headersJson",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}