A valid API key
The immutable name or slug of a template that exists in the user's account. For backwards-compatibility, the template name may also be used but the immutable slug is preferred.
Additional template content
An array of template content to send. Each item in the array should be a struct with two keys - name: the name of the content block to set the content for, and content: the actual content to put into the block
When this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately. An additional fee applies for scheduled email, and this feature is only available to accounts with a positive balance.
Adds a new recipient for this template with header type BCC.
Adds a new recipient for this template with header type BCC.
TODO write usage examples
Recipient email
Optional variables for this recipient
A new template with the recipient added
Adds a new recipient for this template with header type CC.
Adds a new recipient for this template with header type CC.
TODO write usage examples
Recipient email
Optional variables for this recipient
A new template with the recipient added
A valid API key
An array of template content to send.
An array of template content to send. Each item in the array should be a struct with two keys - name: the name of the content block to set the content for, and content: the actual content to put into the block
Schedules this template at the given point in time.
Schedules this template at the given point in time. If you specify a time in the past, the message will be sent immediately.
An additional fee applies for scheduled email, and this feature is only available to accounts with a positive balance.
The time the message should be sent
A new template with sendAt date
When this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format.
When this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately. An additional fee applies for scheduled email, and this feature is only available to accounts with a positive balance.
Adds template contents to this template
Adds template contents to this template
TODO write usage examples
first template content item
optional other template content items
A new template with template content items added
Additional template content
The immutable name or slug of a template that exists in the user's account.
The immutable name or slug of a template that exists in the user's account. For backwards-compatibility, the template name may also be used but the immutable slug is preferred.
Adds a new recipient for this template.
Adds a new recipient for this template.
TODO write usage examples
Recipient email
Optional variables for this recipient
A new template with the recipient added
Adds a new recipient for this template.
Adds a new recipient for this template.
TODO write usage examples
New recipient
Optional variables for this recipient
A new template with the recipient added
Mandrill Templates
Modelling the responses/requests for the
/messages/send-template.json
methodEvery template defined in mandrill is represented by its own type.
A template has a
name
and amessage
object, which is represented by net.gutefrage.mandrill.messages.SendTemplate.Message.The message object defines:
- the recipients - the recipients individual merge_vars (placeholders) - the global_merge_vars that are inserted in each template
JSON format
This is the minimal format that gets generated by our API
A valid API key
The immutable name or slug of a template that exists in the user's account. For backwards-compatibility, the template name may also be used but the immutable slug is preferred.
Additional template content
An array of template content to send. Each item in the array should be a struct with two keys - name: the name of the content block to set the content for, and content: the actual content to put into the block
When this message should be sent as a UTC timestamp in YYYY-MM-DD HH:MM:SS format. If you specify a time in the past, the message will be sent immediately. An additional fee applies for scheduled email, and this feature is only available to accounts with a positive balance.
https://mandrillapp.com/api/docs/messages.JSON.html#method=send-template
https://mandrillapp.com/templates