Product
Docs
Resources
Log In

Sign Up

Error: Mandrill Merge Vars Not Working

What's Causing This Error

The cause for the Mandrill merge variables not working is possible because of an issue with the nesting.

Solution - Here's How To Resolve It

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" } ] } } }};

Other Common Mandrill Errors (and Solutions)

View all errors

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Product

Pricing

Providers

Developers

Documentation

API

Libraries

Status

© 2023 Courier. All rights reserved.