Content Vars "-1: You must specify a template_content value"

Aug 4, 2012 at 8:03 AM

I receive the error "-1: You must specify a template_content value" when sending an empty IEnumerable<Mandrill.NameContentPair<string>> to the SendTemplate() method.

The API does however allow you to send an empty array... How do I send an empty array for this parameter?

Coordinator
Aug 5, 2012 at 8:34 PM

If your template has no editable sections, send regular html instead. Otherwise you need to provide some content, even dummy (empty Name/Content).