Mandrillex.Templates

Templates calls for Mandrill.

Summary

add(params)

Add a new template

add(name, from_email, from_name, subject, code, text, publish, labels)
delete(params)

Delete a template

info(params)

Get the information for an existing template

list(params)

Return a list of all the templates available to this user

publish(params)

Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft

render(params)

Inject content and optionally merge fields into a template, returning the HTML that results

render(template_name, template_content, merge_vars)
time_series(params)

Return the recent history (hourly stats for the last 30 days) for a template

update(params)

Update the code for an existing template. If null is provided for any fields, the values will remain unchanged

update(name, from_email, from_name, subject, code, text, publish, labels)

Functions

add(params)

Add a new template

add(name, from_email, from_name, subject, code, text, publish, labels)
delete(params)

Delete a template

info(params)

Get the information for an existing template

list(params)

Return a list of all the templates available to this user

publish(params)

Publish the content for the template. Any new messages sent using this template will start using the content that was previously in draft.

render(params)

Inject content and optionally merge fields into a template, returning the HTML that results

render(template_name, template_content, merge_vars)
time_series(params)

Return the recent history (hourly stats for the last 30 days) for a template

update(params)

Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.

update(name, from_email, from_name, subject, code, text, publish, labels)