Help

How To Use Mandrill Templates

Last updated:

There are two options for work templates in Mandrill: template variables or merge tags.

Template Variables

In a template like:

<div mc:edit="header">
     <h2>Thank you for your purchase</h2>
</div>
<div mc:edit="main" style="color:#000000;">
     We appreciate your business. Below please find details of your order.
</div>
<div mc:edit="footer">
     Company contact information will go here.
</div>

All you need to do is provide some template content like so:

header|<h2>Hello {% templatetag openvariable %}first_name{% templatetag closevariable %}, thanks for buying!</h2>
main|Your item called {% templatetag openvariable %}item_name{% templatetag closevariable %} will be shipped {% templatetag openvariable %}date{% templatetag closevariable %}.

Which looks something like this on the live site:

https://cdn.zapier.com/storage/photos/28c6abaff7e5cbee487a777acc2390ef.png

Read more at Mandrill about template variables.

Merge Tags

If you don't want to provide HTML style template variables, you can just use simpler merge tags. For example, for a template like this:

Dear *|FNAME|*,
   Thank you for your purchase on *|ORDERDATE|* from ABC Widget Company. 
We appreciate your business and have included a copy of your invoice below.

*|INVOICEDETAILS|*

Please let us know if you have further questions.

     -- ABC Widget Co.

You would provide merge variables like this:

fname|{% templatetag openvariable %}first_name{% templatetag closevariable %}
invoicedetails|You bought {% templatetag openvariable %}item_name{% templatetag closevariable %} for ${% templatetag openvariable %}item_price{% templatetag closevariable %}.

Which looks like this on Zapier:

https://cdn.zapier.com/storage/photos/c77cdc68476d62a1b142a8097326cae0.png

Read more at Mandrill about merge tags.


Need More Help?

Contact Support

Tell us about your problem, and we’ll find you a solution or you can email support.
Get Help

Hire an Expert

We have a directory of professionals across the globe who are ready to help.
Find a Zapier Expert

Zapier Community

Connect with other Zapier users and industry professionals to get help crafting the perfect workflow.
Check out the community