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!
Hi HappyHippo,
Simply use $nm1 in your template.
Got it :)
Thank you Brian!