Mandrill-dotnet icon indicating copy to clipboard operation
Mandrill-dotnet copied to clipboard

AddGlobalVariable Dynamic Objects

Open digitalgym opened this issue 8 years ago • 0 comments

I'm trying to pass the following structure to mandrill.

email.AddGlobalVariable("callToAction",new { Label = "Go to", Link = "http://google.com" });

In the template I'm unable to access the properties with {{callToAction.Link}}. When I check fiddler it looks like the object has been created correctly. Can anyone provide an example of how to do this type of thing in c# and in the template?

digitalgym avatar May 24 '16 02:05 digitalgym