• Welcome to KonaKart Community Forum. Please login or sign up.
 

How to access passed custom information to the Velocity template

Started by HappyHippo, April 04, 2016, 10:00:48 am

Previous topic - Next topic

HappyHippo

Hello Guys;
I have passed NameValue object to EmailOptionsIf but i don't know how to get values in velocity template...please help

NameValue[] nm= new NameValue[1];
nm[0] = new NameValue("nm1", "Value1");

EmailOptionsIf options = new EmailOptions();
options.setTemplateName("custom-template");
options.setCountryCode("en");
options.setCustomAttrs(nm);
kkEng.getEng().sendTemplateEmailToCustomer1(70, "Test -- Alert from Action", options); 

How to access NameValue object nm1 values  in velocity template?

Thank you!

Brian


HappyHippo