You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the variable {{subscriber.lastName}} in the Subject line with the SMTP email provider, the variable is not getting replaced with the actual value. Instead, it only shows "Hello, " as the result.
The payload being used is:
{
"subscriber": {
"lastName": "John"
}
}
👟 Reproduction steps
Send an email using SMTP email provider with the subject as Hello, {{subscriber.lastName}}.
Check the received email.
👍 Expected behavior
The subject of the email should be "Hello, John".
👎 Actual Behavior with Screenshots
The subject of the email is "Hello, ".
Novu version
0.19.0
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
When using the same variable {{subscriber.lastName}} in the Editor, it gets replaced properly and shows "Hello, John" as the result.
👀 Have you spent some time to check if this bug has been raised before?
the issue is with the name subscriber, its getting overwritten by one of the internal entities with the same name, if you name it subscriber1 or anything other than subscriber it should work fine, changing the logic to support exact message payload is recommended but required some careful code refactoring @kaptinlin@scopsy@jainpawan21
i'd like to fix this as well
📜 Description
When using the variable
{{subscriber.lastName}}
in the Subject line with the SMTP email provider, the variable is not getting replaced with the actual value. Instead, it only shows "Hello, " as the result.👟 Reproduction steps
Hello, {{subscriber.lastName}}
.👍 Expected behavior
The subject of the email should be "Hello, John".
👎 Actual Behavior with Screenshots
The subject of the email is "Hello, ".
Novu version
0.19.0
npm version
No response
node version
No response
📃 Provide any additional context for the Bug.
When using the same variable
{{subscriber.lastName}}
in the Editor, it gets replaced properly and shows "Hello, John" as the result.👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: