IMPORTANT: This documentation has been discontinued. Read the updated E-mail V1 - Example documentation on our new documentation portal.

Let's imagine that when utilizing the E-mail V1 component, you are unable to add values to the email template.

First, it's necessary to understand that the email template accepts the use of the input JSON attributes in the ${atrribute} format. Therefore, the "attribute" must be inside "params", resulting in the following input JSON:

{
"attribute": "valueOfAttribute"
}

Afterwards, this is the transformation that must occur:

{
"params": {
"attribute": "valueOfAttribute"
}
}

This would be the email template preview:

Hello ${attribute}!

It's also possible to add HTML tag to the template:

<div>Hello ${atrribute}!</div>

That way, the variable replaced in the sent email would be seen like this:
Hello valueOfAttribute!

Click here to read the full article about the E-mail V1 component.

Did this answer your question?