I have email templates, which have to be applied by purpose. For example, I want to send an invitation out of a certain entity and the user should be able only to use an email template, that was created for that purpose. The entity from which it will be sent has an enum field, to choose the purpose.
So I look for a solution that works as: If the purpose choosen in the entity is A, only offer Templates marked with purpose A as well.
Is there such a possibility? I do not look for any if condition inside the template, that would not work for my case.
So I look for a solution that works as: If the purpose choosen in the entity is A, only offer Templates marked with purpose A as well.
Is there such a possibility? I do not look for any if condition inside the template, that would not work for my case.
Comment