Hi all,
I am facing a(nother) challenge. I have to send emails to users who are not the logged in users. These emails can be in languages different from that of the user in logged in. So I cannot use the Multi-Language action to define the content of the email (that would send an email in the language of the logged in user).
So I have set up a table with email templates in different languages which get retrieved based on the (not logged in) user's language preferences.
Retrieving the correct template works well and is in the following array-format:
[email] => Array
(
[email_subject] => Email about item {cf_id}
[email_text] => Dear {user.firstname} {user.lastname},...
)
Setting the subject and body in the Email [GH] action works fine when using {email.email_subject} and {email.email_text} respectively. The values between curly brackets within the subject (cf_id) and body (user.firstname and user.lastname) are not replaced by the correct values, however. So an email is sent with curly brackets and not with the values they represent.
This must have something to do with the order of processing or the data type of the values retrieved, since the action should replace the values between curly brackets.
Is there a way to get this working?
I am facing a(nother) challenge. I have to send emails to users who are not the logged in users. These emails can be in languages different from that of the user in logged in. So I cannot use the Multi-Language action to define the content of the email (that would send an email in the language of the logged in user).
So I have set up a table with email templates in different languages which get retrieved based on the (not logged in) user's language preferences.
Retrieving the correct template works well and is in the following array-format:
[email] => Array
(
[email_subject] => Email about item {cf_id}
[email_text] => Dear {user.firstname} {user.lastname},...
)
Setting the subject and body in the Email [GH] action works fine when using {email.email_subject} and {email.email_text} respectively. The values between curly brackets within the subject (cf_id) and body (user.firstname and user.lastname) are not replaced by the correct values, however. So an email is sent with curly brackets and not with the values they represent.
This must have something to do with the order of processing or the data type of the values retrieved, since the action should replace the values between curly brackets.
Is there a way to get this working?