Send Template email does not show the email correctly

Jul 18, 2012 at 8:40 AM

 List<MailChimp.Types.Mandrill.NameContentPair<string>> contentPair = new List<Mandrill.NameContentPair<string>>();
            contentPair.Add(new MailChimp.Types.Mandrill.NameContentPair("firstName","manish"));
            contentPair.Add(new MailChimp.Types.Mandrill.NameContentPair("lastName","penkar"));
  MailChimp.MandrillApi api = new MailChimp.MandrillApi(mandrilApiKey);
api.TemplateUpdate("ThankYou Purchase","<div style=\"height:200px background-color:yellow\">Hello Mr mc:edit=\"firstName\" mc:edit=\"lastName\" Thankyou for your first time purchase with us, hoping to get good business and good relationship with you.</div>");
api.SendTemplate("ThankYou Purchase", contentPair, messsage);

the email i have received have not replaces the editable text "mc:edit="firstname" with the actual name.
The Formating and styles has been disappeared.

What wrong am i doing ?

please help



Coordinator
Jul 18, 2012 at 8:28 PM
Edited Jul 23, 2012 at 9:48 PM
This is probably because they introduced a new parameter: publish.
Need to test it...