Skip to content
Advertisement

What the template_content should be in case that template itself has no need for it (eg template has no mc:edit)?

I replaced the mandrill/mandrill package with mailchimp/transactional. Also I have a tamplate named MYTEMPLATE-001-GR with mergevar name.

And I try to send an email using that template:

JavaScript

But the response is the following:

JavaScript

Meaning I should provide some value in template_content but my template has NO input fields just merge vars therefore I do not know what value needs to be provided in this case.

The previous version it just used NULL as template content value and worked just fine. Do you know how I can change the call into the later version?

Advertisement

Answer

In this case the template_content based upon this tweet for the sendTemplate Mandrill APi call should contain the following values:

JavaScript

Therefore your code should be the following:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement