Closed kevgathuku closed 9 years ago
I think you might be mixing up Mandrill's global_merge_vars
and merge_vars
. You probably want _global__merge_vars for what you've written. But if you do want to use merge_vars, those need to be set per-recipient. See the example in the Djrill docs for examples of both.
Thanks. Using global_merge_vars
fixed it.
Hi, I am having some trouble with inserting some dynamic content in my templates. I am trying to pass multiple objects to the template in order to use the for loops feature in Mandrill templates. I followed the examples and I am not able to pass multiple elements in the merge vars. This is my attempt so far:
The corresponding template has a handlebars for loop that iterates over the users and displays the info.
What would be the best way to implement passing multiple elements to the template under a single key? Thanks in advance.