use Velocity within mailing content?

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

bhcuong2008
Posts: 26
Joined: Fri Apr 11, 2014 3:56 pm

use Velocity within mailing content?

Post 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
Fatalin
Posts: 111
Joined: Wed Aug 05, 2009 10:51 am
Location: Troisdorf, Germany
Contact:

Re: use Velocity within mailing content?

Post 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
Günstige Software gibt es bei http://www.Software-Butler.de
bhcuong2008
Posts: 26
Joined: Fri Apr 11, 2014 3:56 pm

Re: use Velocity within mailing content?

Post 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, https://forum.openemm.org/suggestions-f4/topic2603.html
Post Reply