Skip to content

Set merge_language for Mailchimp/Mandrill #234

Answered by medmunds
dbuckd asked this question in Q&A
Discussion options

You must be logged in to vote

I've tried to set using esp_extra:
msg.esp_extra = {'merge_language': 'handlebars'}

From the Mandrill docs, it looks like merge_language has to be set within the message key, not as a top-level API parameter. Try this:

msg.esp_extra = {'message': {'merge_language': 'handlebars'}}

Anymail's info on esp_extra for Mandrill goes into a little more detail on the different levels of parameters in MailChimp's transactional API.

[As with all things Mandrill, I haven't tested this myself, due to MailChimp's policy against providing development/test accounts.]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dbuckd
Comment options

Answer selected by dbuckd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants