The cause for the Mandrill merge variables not working is possible because of an issue with the nesting.
You have to make sure the variables are nested in the message
struct for it to work. Given below is an example of how it is done.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
var message = { to: "sample@gmail.com", mandrillOptions: { template_name: 'template1', template_content: [ ], message: { "merge": true, "merge_language": "handlebars", "global_merge_vars": [{ "name": "fname", "content": "Sample" }, { "name": "email", "content": "sample@gmail.com" } ] } } }};
View all errors
Send up to 10,000 notifications every month, for free.
Get started for free
Send up to 10,000 notifications every month, for free.
Get started for free
© 2024 Courier. All rights reserved.