Hello,
I'm trying to send an email with a velocity template through the
Customer Communications screen. Is it documented anywhere what
variables are available for use? For example, I'm able to use $cust,
but $storeName does not get translated. $storeName works for the
welcome email sent from the konakart app, but it does not work from the
konakart admin app. Also, how do I get the text in "Text to merge with
template" to get merged into the email? I tried using $message, but it
doesn't work. Here is an excerpt from my velocity template:
message: $message
storeOwner: $storeOwner;
storeName: $storeName
storeOwnerEmailAddr: $storeOwnerEmailAddr
None of these fields get mapped properly, but
Dear $cust.getFirstName() $cust.getLastName() ,
gets mapped fine.
Thanks,
Bob
Take a look at Newsletter_en.vm as an example of merging.
It uses the sendTemplateEmail() Admin App API call. The customer object gets sent in. Other data such as the store name should be put directly in the template.