Closed rfines closed 9 years ago
Looks like maybe you're missing the "rcpt": {} and "vars": {} objects in the array you're passing to merge_vars. I think Mandrill's merge_vars is expecting something more like:
"merge_vars":[ { "rcpt": {}, "vars": {} ]
where the vars
object is a child of merge_vars and contains what you're currently passing directly to merge_vars. I'd recommend double checking the example API usage and making sure your structure matches what the merge_vars is expecting. Hope this helps!
The package has been rewritten from scratch to implement the full Mandrill API. Please see the release notes.
The tests now send templated messages with merge vars being successfully replaced.
I have been trying to send some simple template emails, and none of the merge vars are getting passed through to the template. Can you give me some guidance? I have my sendTemplate call set up like this:
with the merge_vars looking like this:
I have a pretty basic template set up in mandrill but when I send this email out, I get a bunch of merge var tags and not the desired content.
Here is an example of the merge tag definitions in the template:
Can you help me out??