I have spent quite a lot of time on this and still cannot figure it out.
Here is my template that I saved in mandrill-> outbound-> templates
Hello *|USERNAME|*
this is a *|TEMPNAME|* template
And here is the message I am making from the command line
curl -A 'Mandrill-Curl/1.0' -d
'{"key":"XXXXXXXXXXXXXXX","template_name":"testTemp","template_content" : [],
"message": {"to": [{"email": "raghu.iitr@gmail.com", "name": "Raghvendra Singh",
"type": "to"}], "merge": true,
"merge_vars": [{"rcpt":"raghu.iitr@gmail.com",
"vars":[{ "content:": "random template", "name": "TEMPNAME" }, { "content:": "raghu", "name": "USERNAME" }]}] }}'
'https://mandrillapp.com/api/1.0/messages/send-template.json'
I get the following answer
[{"email":"raghu.iitr@gmail.com","status":"sent","_id":"9015df4d0b1b457588670863c7303822","reject_reason":null}]
But the email that I receive does not combine the variable, and here is the email that I receive
Hello *|USERNAME|* this is a *|TEMPNAME|* template
I'm not sure what I'm doing wrong here. Any help really really appreciated
source
share