Variables placed in the email body aren't replaced by their actual value

Created on 22 May 2019, about 5 years ago
Updated 2 February 2024, 5 months ago

When a mail is sent using a Business Rules action, variables placed in the body of the email are not replaced by the actual value of the variable, for example if I create a send email action with body "Your page titled {{page_title}} has been updated", instead of receiving "Your page titled Hello World has been updated" I receive "Your page titled {{page_title}} has been updated".

Curiously, if the variables are entered into the "Subject" or "To" fields first, they appear just fine. For example if I send an email with

Subject: Page {{page_title}} updated

To: {{author->mail}}

Message: Your page titled {{page_title}} has been updated

Then {{page_title}} is replaced just fine in both subject and body/message.

Reproducing:
Create a business rule that sends an email on being triggered. Place no variables anywhere except the body. Place a variable in the body. Received email should have verbatim variable name instead of variable value.

Further examples attached in images

Update: beta4 seems to be the last version where this problem did not occur.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Plugins

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024