I'm sending a template email from Mandrill API like this:
{
"key":"xxxyyyzzz",
"template_name":"coupon-purchased",
"template_content":[
],
"message":{
"to":[{"email":"[email protected]"}]
},
"merge":true,
"global_merge_vars":[
{
"name":"FNAME",
"content":"Your name"
},
{
"name":"FGYMNAME",
"content":"Your gym"
}
],
"merge_vars":[
{
"rcpt": "[email protected]",
"vars":[
{
"name":"FNAME",
"content":"Your name"
},
{
"name":"FGYMNAME",
"content":"Your gym"
}
]
}]
}
As a POST message to this URL: https://mandrillapp.com/api/1.0/messages/send-template.json
I've tried with some HTML document, but finally I'm just using the following as template:
*|FNAME|* and *|FGYMNAME|*
But still not working. Those variables are not exchanged with the values sent in global_merge_vars.
Also, I've tried to remove merge_vars and merge properties from JSON, not working neither.
Any clues about it?
Thanks!