How to create template for Mandrill ???

2,176 views
Skip to first unread message

Waheed Ul Haq

unread,
Apr 12, 2012, 9:15:06 AM4/12/12
to mandrill-a...@googlegroups.com
In Templates tab :

You haven't published any MailChimp templates to Mandrill yet.

You can do that by clicking on the Mandrill icon by your MailChimp account's templates.


Have't found Mandrill icon on MailChimp tamplates.

How to do this???

Thanks

Chad

unread,
Apr 12, 2012, 11:56:09 AM4/12/12
to mandrill-a...@googlegroups.com
To post a template from MailChimp to Mandrill, you must first code a transactional template using the "code your own" feature in MailChimp.  When you save the template to MailChimp, a button will appear in the template list allowing you to publish the template and use it in Mandrill.  This is done because the built-in templates generally all use merge fields and contain subscription information that aren't supported and generally don't make sense in Mandrill.

Waheed Ul Haq

unread,
Apr 16, 2012, 7:05:06 AM4/16/12
to mandrill-a...@googlegroups.com

Hi Chad
Thanks for replay.

Sorry I have't see "a button appear in the template list allowing you to publish the template and use it in Mandrill"
Can you explain a little more??

Thanks..

Dinks V

unread,
Jun 25, 2012, 11:03:05 AM6/25/12
to mandrill-a...@googlegroups.com
Can one add placeholders in the messages that could be substituted on API calls ? If yes, then how ?
 
How does a placeholder look like .. A link would be of great help

Kaitlin

unread,
Jul 2, 2012, 2:08:22 PM7/2/12
to mandrill-a...@googlegroups.com
Sorry for the delay in the response for this.  You can create dynamic content areas in two ways: using editable regions in your template, or using merge tags. 

Editable regions are taken from the MailChimp template language (Template Language: Creating Editable Content Areas: http://eepurl.com/ck4Nz - note that only the mc:edit tags are supported for Mandrill at this time), and are generally useful if you'll need to inject code or large amounts of content into your template.  You would add mc:edit with a unique identifier to a specific area in your template, like this:

<div mc:edit="bodyContent">
This is placeholder content.
</div>

Then, when you make an API call for messages/send-template, you'd specify "bodyContent" as the name of the region (for template_content), and then provide your content which will replace everything in that tag (but not modifying the tag iteself). In this case "This is placeholder content." would be replaced with the content you specify.

You can also use merge tags in your templates to provide names, dates, and the like. Mergetags take the form of *|MERGETAG|*

In the messages/send or messages/send-template API call, you can specify recipient-specific values and/or global values (to be used for everyone who doesn't have a recipient-specific value) using merge_vars and global_merge_vars.  The name of the merge tag is the text between the pipes (in the above example, the merge_var name is MERGETAG.

Feel free to send us an email - help.mandrill.com - if you have other questions or need more clarification.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages