Page 1 of 1

use Velocity within mailing content?

PostPosted: Wed May 14, 2014 10:54 am
by bhcuong2008
Hi,

I wonder if we could use Velocity within mailing content. For example, I can use if-else condition on a recipient field for different output value, like this
===
If shoe_size > 40 then
value = "big"
else if shoe_size < 30 then
value = "small"
else
value = "medium"
===

So the final result will be different for each recipient.

Thanks

Re: use Velocity within mailing content?

PostPosted: Thu May 15, 2014 10:47 am
by Fatalin
Hi bhcuong2008,

You could try to solve your problem using Target Groups and dynamic content.
The situation is similar to our bi-lingual user registration, where we send either a German or English mailing based on the target group (= based on the language setting).

See the "Target Group" section in the user handbook.

Best Regards
Markus

Re: use Velocity within mailing content?

PostPosted: Thu May 15, 2014 4:20 pm
by bhcuong2008
Thank Fatalin :)

I know this feature and is using this. However, there are some small cases suitable for using template. It will
make simpler to do. For example, if we want to use salutation in our mail, such as Sir / Madam, it will be simpler
than using Target group. If using target group, we must define 2 groups for handling this case.

By using templating (Velocity or something), content can be generated dynamically (in executing stage, not designing stage).

I have the same idea as bk007, in this post, suggestions-f4/topic2603.html