Alternative to session.lang

Hello,

I am using an if clause to select the language of the e-mail. Therefore I am using the session.lang element. This works in most e-mails, but not in time based e-mails. I think they cannot use the session.lang element if they are send from the query. Is there another way to get the language element? Maybe just the user language from the preferences?

Greetings Torben

There’s usually no “current user” context available in emails that are sent outside the scope of a request triggered by the user. So unless one of the objects available in the email template exposes the user the email is being sent to (FYI for reminders this is not the case), there’s no way to do it atm.