This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Mandrill Merge Vars Working? #37
Comments
You need to pass
in var message = {
to: "john@gmail.com",
mandrillOptions: {
template_name: 'template1',
template_content: [
],
message: {
"merge": true,
"merge_language": "handlebars",
"global_merge_vars": [{
"name": "fname",
"content": "John"
},
{
"name": "email",
"content": "john@gmail.com"
}
]
}
}
}}; |
You just saved my life. Thanks. |
Worked for me |
must pass this paramater
work for me mandrill('/messages/send-template', { |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I can't seem to get "global merge vars" to work successfully, when sending a Mandrill Template.
The emails are sent, but the areas where the merged values should be, remains blank.
Here's a look at the code:
In Mandrill, my vars are setup like so:
I should mention that the
{{email}}
field seems to work, with or without passing any merge vars when sending.The text was updated successfully, but these errors were encountered: