Custom HTML Email Templates - Expression Language

The documentation states that only a specific set of attributes are sorted in email templates, however, no mention of whether expression language is supported (either the new or old EL).

I am getting around the attribute limitations by putting the inviter of the new user as the secondEmail attribute. I then want to parse this to get the user’s name out of it (it will be in a fixed format).

Is there anyway to use EL or perhaps get another attribute in the email template?

Hi @James-Distology

You can use an expression like the following in the email template to extract the username from the secondary email

${f:substringBefore(user.secondEmail,"@")}

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.